Maxsus ta’lim vazirligi


I.Karimov. Yuksakma’naviyat – yengilmaskuch. – T.: “Ma’naviyat”, 2008



Yüklə 1,6 Mb.
səhifə7/7
tarix02.06.2023
ölçüsü1,6 Mb.
#122451
1   2   3   4   5   6   7
Mahbuba Kenjaboyeva

I.Karimov. Yuksakma’naviyat – yengilmaskuch. – T.: “Ma’naviyat”, 2008.


  • А.Ю.Гаевский. Информатика. Учебн. пособие. – Киев: «А.С.К.», 2006.

  • А.А.Бобцов, А.В.Лямин. Основы работы в среде Windows. Учебно- методическое пособие. – СПб., 2002.

  • А.Н.Лебедев. Windows 7 и Office 2012. – СПб.: «Питер», 2012.

  • http://www.findsoft.ru/. AutoPlay Media Studio 7.0 – быстрое создание мультимедиа-приложений.

  • http://cs.usu.edu.ru/. Мультимедиа.

  • http://websound.ru/. MIDI-технология.

  • http://inf.yspu.yar.ru/. Мультимедийные технологии.

  • http://useragu.narod.ru/vbscript 10.http://www.3dnews.ru/software/autoplay-media-studio 11.http://en.wikipedia.org/wiki/AutoPlay 12.http://www.indigorose.com/products/autoplay-media-studio 13.http://mmbuilder.ru/publ/lessons/1 14.http://clubrus.kulichki.com/mmb.html 15.http://www.ziyonet.uz

    Ilovalar
    using System;
    using System.Collections.Generic; using System.ComponentModel; using System.Data;
    using System.Drawing; using System.Linq; using System.Text;
    using System.Threading.Tasks; using System.Windows.Forms;

    namespace Elektron_Darslik_program


    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }
    private void Form1_Load(object sender, EventArgs e)
    {
    }
    private void bunifuButton1_Click(object sender, EventArgs e)
    {
    Form ob = new Form5(); Form.ActiveForm.SendToBack(); ob.Show();
    }
    private void bunifuButton3_Click(object sender, EventArgs e)
    {
    Form ob = new Form3(); //Model Form.ActiveForm.SendToBack(); ob.Show();
    }
    private void bunifuButton2_Click(object sender, EventArgs e)
    {
    Form ob = new Form4(); Form.ActiveForm.SendToBack(); ob.Show();
    }
    private void bunifuButton4_Click(object sender, EventArgs e)
    {
    Form ob = new Form2(); Form.ActiveForm.SendToBack(); ob.Show();
    }

    private void bunifuButton5_Click(object sender, EventArgs e)


    {
    Form ob = new Form5(); Form.ActiveForm.SendToBack(); ob.Show();
    }

    /* private void button1_Click(object sender, EventArgs e)


    {
    test x = new test(); Form.ActiveForm.SendToBack(); x.Show();
    }*/

    private void button1_Click_1(object sender, EventArgs e)


    {
    test x = new test(); Form.ActiveForm.SendToBack(); x.Show();
    }
    }
    }
    using System;
    using System.Collections.Generic; using System.ComponentModel; using System.Data;
    using System.Drawing; using System.Linq; using System.Text;
    using System.Windows.Forms;
    //using System.IO;

    namespace Elektron_Darslik_program


    {
    public partial class test : Form
    {
    int savol_soni = 0; int togrilari_soni = 0;
    int notogrilar_soni = 0; string[] notogri_savollar; int togri_javob;
    int x;

    System.Text.Encoding y = System.Text.Encoding.GetEncoding(1251); System.IO.StreamReader yozish;


    public test()


    {
    InitializeComponent();
    radioButton1.CheckedChanged += new System.EventHandler(izmcoctperekl); radioButton2.CheckedChanged += new System.EventHandler(izmcoctperekl); radioButton3.CheckedChanged += new System.EventHandler(izmcoctperekl); radioButton4.CheckedChanged += new System.EventHandler(izmcoctperekl); keyingitest();
    }
    void keyingitest()
    {
    try
    {
    yozish = new System.IO.StreamReader(System.IO.Directory.GetCurrentDirectory() +
    @"\csharpp.txt", y);
    this.Text = yozish.ReadLine();
    savol_soni = 0; togrilari_soni = 0; notogrilar_soni = 0; notogri_savollar = new string[100];

    }
    catch (Exception xx)


    {
    MessageBox.Show(xx.Message, "xato", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

    }
    keyingi_savol_yozish();


    }

    void keyingi_savol_yozish()


    {
    label1.Text = yozish.ReadLine(); radioButton1.Text = yozish.ReadLine(); radioButton2.Text = yozish.ReadLine(); radioButton3.Text = yozish.ReadLine(); radioButton4.Text = yozish.ReadLine();

    togri_javob = Convert.ToInt32(yozish.ReadLine()); radioButton1.Checked = false; radioButton2.Checked = false; radioButton3.Checked = false; radioButton4.Checked = false;
    button1.Enabled = false;
    savol_soni++;
    if (yozish.EndOfStream == true) button1.Text = "tugadi";
    }
    private void izmcoctperekl(object sender, EventArgs e)
    {
    button1.Enabled = true;
    // button1.Focus();
    RadioButton pereklyuchatel = (RadioButton)sender; string tmp = pereklyuchatel.Name;
    x = int.Parse(tmp.Substring(11));
    }

    private void button1_Click(object sender, EventArgs e)


    {
    if (x == togri_javob) togrilari_soni++;
    if (x != togri_javob)
    {
    notogrilar_soni = notogrilar_soni + 1; notogri_savollar[notogrilar_soni] = label1.Text;
    }
    if (button1.Text == "Testni qaytadan boshlash")
    {
    button1.Text = "keyingi savol"; radioButton1.Visible = true; radioButton2.Visible = true; radioButton3.Visible = true; radioButton4.Visible = true; keyingitest(); return;
    }
    if (button1.Text == "tugadi")
    {
    yozish.Close(); radioButton1.Visible = false; radioButton2.Visible = false; radioButton4.Visible = false; radioButton3.Visible = false;
    \n" +
    label1.Text = string.Format("test tugatildi.\n" + "to`g`ri javob: {0} dan {1}.

    "5 ballik sistemadagi bahoyingiz :{2:F2}.", savol_soni, togrilari_soni,


    (togrilari_soni * 5F) / savol_soni);
    button1.Text = "Testni qaytadan boshlash";
    string str = "Asiz ushbu savollarga xato javob berdingiz: \n \n";
    for (int i = 1; i <= notogrilar_soni; i++) str = str + notogri_savollar[i] + "\n"; if (notogrilar_soni != 0) MessageBox.Show(str, "test tugadi");
    }

    if (button1.Text == "keyingi savol") keyingi_savol_yozish();


    }
    private void button2_Click(object sender, EventArgs e)


    {
    Close();
    }
    }
    }





    Yüklə 1,6 Mb.

    Dostları ilə paylaş:
  • 1   2   3   4   5   6   7




    Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
    rəhbərliyinə müraciət

    gir | qeydiyyatdan keç
        Ana səhifə


    yükləyin