Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Windows.Forms;
- using System.Linq;
- using System.Text;
- using System.IO;
- namespace Project
- {
- /// <summary>
- /// Description of MainForm.
- /// </summary>
- public partial class MainForm : Form
- {
- double gug;
- double gug1;
- double gug2;
- double gug3;
- double gug4;
- double gug5;
- double gug6;
- double gug7;
- double gug8;
- double gug9;
- double gug10;
- double gug11;
- double gug12;
- List<int> russian = new List<int>();
- List<int> litra = new List<int>();
- List<int> math = new List<int>();
- List<int> geometry = new List<int>();
- List<int> history = new List<int>();
- List<int> obsh = new List<int>();
- List<int> english = new List<int>();
- List<int> info = new List<int>();
- List<int> geography = new List<int>();
- List<int> biology = new List<int>();
- List<int> physics = new List<int>();
- List<int> avia = new List<int>();
- double a = 0;
- double b = 0;
- int j = 0;
- string ki;
- string g;
- string p = @"C:\\new_file.txt";
- string yu = @"C:\\new_file2.txt";
- string ty = @"C:\\new_file3.txt";
- string fg = @"C:\\new_file4.txt";
- string op = @"C:\\new_file5.txt";
- string ert = @"C:\\new_file6.txt";
- string qwe = @"C:\\new_file7.txt";
- string vb = @"C:\\new_file8.txt";
- string bn = @"C:\\new_file9.txt";
- string nm = @"C:\\new_file10.txt";
- string mn = @"C:\\new_file11.txt";
- string nb = @"C:\\new_file12.txt";
- public MainForm()
- {
- //
- // The InitializeComponent() call is required for Windows Forms designer support.
- //
- InitializeComponent();
- //
- // TODO: Add constructor code after the InitializeComponent() call.
- //
- }
- void Button1Click(object sender, EventArgs e)
- {
- a = 0; b = 0; j = 0;
- for(int i = 0;i < russian.Count;i++)
- {
- a = a + russian[i];
- }
- j = System.Convert.ToInt32(russian.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label43.Text = System.Convert.ToString(b);
- }
- else
- {
- label43.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox24.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug1=i;
- }
- label42.Text = System.Convert.ToString(gug1);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < litra.Count;i++)
- {
- a = a + litra[i];
- }
- j = System.Convert.ToInt32(litra.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label44.Text = System.Convert.ToString(b);
- }
- else
- {
- label44.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox23.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug=i;
- }
- label41.Text = System.Convert.ToString(gug);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < math.Count;i++)
- {
- a = a + math[i];
- }
- j = System.Convert.ToInt32(math.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label45.Text = System.Convert.ToString(b);
- }
- else
- {
- label45.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox22.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug2=i;
- }
- label40.Text = System.Convert.ToString(gug2);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < geometry.Count;i++)
- {
- a = a + geometry[i];
- }
- j = System.Convert.ToInt32(geometry.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label46.Text = System.Convert.ToString(b);
- }
- else
- {
- label46.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox21.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug3=i;
- }
- label39.Text = System.Convert.ToString(gug3);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < history.Count;i++)
- {
- a = a + history[i];
- }
- j = System.Convert.ToInt32(history.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label47.Text = System.Convert.ToString(b);
- }
- else
- {
- label47.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox19.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug4=i;
- }
- label38.Text = System.Convert.ToString(gug4);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < obsh.Count;i++)
- {
- a = a + obsh[i];
- }
- j = System.Convert.ToInt32(obsh.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label48.Text = System.Convert.ToString(b);
- }
- else
- {
- label48.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox20.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug5=i;
- }
- label37.Text = System.Convert.ToString(gug5);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < english.Count;i++)
- {
- a = a + english[i];
- }
- j = System.Convert.ToInt32(english.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label49.Text = System.Convert.ToString(b);
- }
- else
- {
- label49.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox18.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug6=i;
- }
- label36.Text = System.Convert.ToString(gug6);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < info.Count;i++)
- {
- a = a + info[i];
- }
- j = System.Convert.ToInt32(info.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label50.Text = System.Convert.ToString(b);
- }
- else
- {
- label50.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox17.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug7=i;
- }
- label35.Text = System.Convert.ToString(gug7);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < geography.Count;i++)
- {
- a = a + geography[i];
- }
- j = System.Convert.ToInt32(geography.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label51.Text = System.Convert.ToString(b);
- }
- else
- {
- label51.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox16.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug8=i;
- }
- label34.Text = System.Convert.ToString(gug8);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < biology.Count;i++)
- {
- a = a + biology[i];
- }
- j = System.Convert.ToInt32(biology.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label52.Text = System.Convert.ToString(b);
- }
- else
- {
- label52.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox15.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug9=i;
- }
- label33.Text = System.Convert.ToString(gug9);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < physics.Count;i++)
- {
- a = a + physics[i];
- }
- j = System.Convert.ToInt32(physics.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label53.Text = System.Convert.ToString(b);
- }
- else
- {
- label53.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox14.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug10=i;
- }
- label32.Text = System.Convert.ToString(gug10);
- a = 0;
- b = 0;
- j = 0;
- for(int i = 0;i < avia.Count;i++)
- {
- a = a + avia[i];
- }
- j = System.Convert.ToInt32(avia.Count);
- b=a/j;
- if(System.Convert.ToString(b) != "NaN")
- {
- label54.Text = System.Convert.ToString(b);
- }
- else
- {
- label54.Text = "0";
- }
- for(int i = 0;b<=(System.Convert.ToDouble(comboBox13.SelectedItem)-0.3);i++){
- a=a+5;
- j++;
- b=a/j;
- gug11=i;
- }
- label31.Text = System.Convert.ToString(gug11);
- }
- void Button4Click(object sender, EventArgs e)
- {
- ki = label30.Text;
- if(ki[0] == 'Д')
- {
- label30.Text = "";
- label30.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label30.ForeColor = Color.Black;
- }
- label30.Text = label30.Text + System.Convert.ToString(comboBox1.SelectedItem) + ' ';
- russian.Add(System.Convert.ToInt32(comboBox1.SelectedItem));
- g = System.Convert.ToString(comboBox1.SelectedItem);
- File.AppendAllText(p,g);
- }
- void TextBox4TextChanged(object sender, EventArgs e)
- {
- }
- void TextBox1TextChanged(object sender, EventArgs e)
- {
- }
- void Button2Click(object sender, EventArgs e)
- {
- string str = File.ReadAllText(p);
- ki = label30.Text;
- if(str != "")
- {
- if(ki[0] == 'Д')
- {
- label30.Text = "";
- label30.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label30.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str.Length;i++)
- {
- label30.Text = label30.Text + str[i] + ' ';
- russian.Add(System.Convert.ToInt32(System.Convert.ToString(str[i])));
- }
- string str2 = File.ReadAllText(yu);
- string str3 = File.ReadAllText(ty);
- string str4 = File.ReadAllText(fg);
- string str5 = File.ReadAllText(op);
- string str6 = File.ReadAllText(ert);
- string str7 = File.ReadAllText(qwe);
- string str8 = File.ReadAllText(vb);
- string str9 = File.ReadAllText(bn);
- string str10 = File.ReadAllText(nm);
- string str11 = File.ReadAllText(mn);
- string str12 = File.ReadAllText(nb);
- ki = label29.Text;
- if(str2 != "")
- {
- if(ki[0] == 'Д')
- {
- label29.Text = "";
- label29.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label29.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str2.Length;i++)
- {
- label29.Text = label29.Text + str2[i] + ' ';
- litra.Add(System.Convert.ToInt32(System.Convert.ToString(str2[i])));
- }
- ki = label28.Text;
- if(str3 != "")
- {
- if(ki[0] == 'Д')
- {
- label28.Text = "";
- label28.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label28.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str3.Length;i++)
- {
- label28.Text = label28.Text + str3[i] + ' ';
- math.Add(System.Convert.ToInt32(System.Convert.ToString(str3[i])));
- }
- ki = label27.Text;
- if(str4 != "")
- {
- if(ki[0] == 'Д')
- {
- label27.Text = "";
- label27.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label27.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str4.Length;i++)
- {
- label27.Text = label27.Text + str4[i] + ' ';
- geometry.Add(System.Convert.ToInt32(System.Convert.ToString(str4[i])));
- }
- ki = label26.Text;
- if(str5 != "")
- {
- if(ki[0] == 'Д')
- {
- label26.Text = "";
- label26.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label26.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str5.Length;i++)
- {
- label26.Text = label26.Text + str5[i] + ' ';
- history.Add(System.Convert.ToInt32(System.Convert.ToString(str5[i])));
- }
- ki = label25.Text;
- if(str6 != "")
- {
- if(ki[0] == 'Д')
- {
- label25.Text = "";
- label25.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label25.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str6.Length;i++)
- {
- label25.Text = label25.Text + str6[i] + ' ';
- obsh.Add(System.Convert.ToInt32(System.Convert.ToString(str6[i])));
- }
- ki = label24.Text;
- if(str7 != "")
- {
- if(ki[0] == 'Д')
- {
- label24.Text = "";
- label24.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label24.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str7.Length;i++)
- {
- label24.Text = label24.Text + str7[i] + ' ';
- english.Add(System.Convert.ToInt32(System.Convert.ToString(str7[i])));
- }
- ki = label23.Text;
- if(str8 != "")
- {
- if(ki[0] == 'Д')
- {
- label23.Text = "";
- label23.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label23.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str8.Length;i++)
- {
- label23.Text = label23.Text + str8[i] + ' ';
- info.Add(System.Convert.ToInt32(System.Convert.ToString(str8[i])));
- }
- ki = label22.Text;
- if(str9 != "")
- {
- if(ki[0] == 'Д')
- {
- label22.Text = "";
- label22.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label22.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str9.Length;i++)
- {
- label22.Text = label22.Text + str9[i] + ' ';
- geography.Add(System.Convert.ToInt32(System.Convert.ToString(str9[i])));
- }
- ki = label21.Text;
- if(str10 != "")
- {
- if(ki[0] == 'Д')
- {
- label21.Text = "";
- label21.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label21.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str10.Length;i++)
- {
- label21.Text = label21.Text + str10[i] + ' ';
- biology.Add(System.Convert.ToInt32(System.Convert.ToString(str10[i])));
- }
- ki = label20.Text;
- if(str11 != "")
- {
- if(ki[0] == 'Д')
- {
- label20.Text = "";
- label20.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label20.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str11.Length;i++)
- {
- label20.Text = label20.Text + str11[i] + ' ';
- physics.Add(System.Convert.ToInt32(System.Convert.ToString(str11[i])));
- }
- ki = label19.Text;
- if(str12 != "")
- {
- if(ki[0] == 'Д')
- {
- label19.Text = "";
- label19.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label19.ForeColor = Color.Black;
- }
- }
- for(int i = 0;i < str12.Length;i++)
- {
- label19.Text = label19.Text + str12[i] + ' ';
- avia.Add(System.Convert.ToInt32(System.Convert.ToString(str12[i])));
- }
- button3.Visible = false;
- }
- void Button3Click(object sender, EventArgs e)
- {
- File.WriteAllText(@"C:\\new_file.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file2.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file3.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file4.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file5.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file6.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file7.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file8.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file9.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file10.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file11.txt", string.Empty);
- File.WriteAllText(@"C:\\new_file12.txt", string.Empty);
- }
- void Label10Click(object sender, EventArgs e)
- {
- }
- void Label12Click(object sender, EventArgs e)
- {
- }
- void MainFormLoad(object sender, EventArgs e)
- {
- if(!System.IO.File.Exists(@"C:\\new_file.txt"))
- {
- File.Create(@"C:\\new_file.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file2.txt"))
- {
- File.Create(@"C:\\new_file2.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file3.txt"))
- {
- File.Create(@"C:\\new_file3.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file4.txt"))
- {
- File.Create(@"C:\\new_file4.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file5.txt"))
- {
- File.Create(@"C:\\new_file5.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file6.txt"))
- {
- File.Create(@"C:\\new_file6.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file7.txt"))
- {
- File.Create(@"C:\\new_file7.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file8.txt"))
- {
- File.Create(@"C:\\new_file8.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file9.txt"))
- {
- File.Create(@"C:\\new_file9.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file10.txt"))
- {
- File.Create(@"C:\\new_file10.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file11.txt"))
- {
- File.Create(@"C:\\new_file11.txt").Close();
- }
- if(!System.IO.File.Exists(@"C:\\new_file12.txt"))
- {
- File.Create(@"C:\\new_file12.txt").Close();
- }
- }
- void Button5Click(object sender, EventArgs e)
- {
- ki = label29.Text;
- if(comboBox2.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label29.Text = "";
- label29.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label29.ForeColor = Color.Black;
- }
- label29.Text = label29.Text + System.Convert.ToString(comboBox2.SelectedItem) + ' ';
- litra.Add(System.Convert.ToInt32(comboBox2.SelectedItem));
- g = System.Convert.ToString(comboBox2.SelectedItem);
- File.AppendAllText(yu,g);
- }
- }
- void Button6Click(object sender, EventArgs e)
- {
- ki = label28.Text;
- if(comboBox3.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label28.Text = "";
- label28.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label28.ForeColor = Color.Black;
- }
- label28.Text = label28.Text + System.Convert.ToString(comboBox3.SelectedItem) + ' ';
- math.Add(System.Convert.ToInt32(comboBox3.SelectedItem));
- g = System.Convert.ToString(comboBox3.SelectedItem);
- File.AppendAllText(ty,g);
- }
- }
- void Button7Click(object sender, EventArgs e)
- {
- ki = label27.Text;
- if(comboBox4.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label27.Text = "";
- label27.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label27.ForeColor = Color.Black;
- }
- label27.Text = label27.Text + System.Convert.ToString(comboBox4.SelectedItem) + ' ';
- geometry.Add(System.Convert.ToInt32(comboBox4.SelectedItem));
- g = System.Convert.ToString(comboBox4.SelectedItem);
- File.AppendAllText(fg,g);
- }
- }
- void Button9Click(object sender, EventArgs e)
- {
- ki = label26.Text;
- if(comboBox5.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label26.Text = "";
- label26.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label26.ForeColor = Color.Black;
- }
- label26.Text = label26.Text + System.Convert.ToString(comboBox5.SelectedItem) + ' ';
- history.Add(System.Convert.ToInt32(comboBox5.SelectedItem));
- g = System.Convert.ToString(comboBox5.SelectedItem);
- File.AppendAllText(op,g);
- }}
- void Button8Click(object sender, EventArgs e)
- {
- ki = label25.Text;
- if(comboBox6.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label25.Text = "";
- label25.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label25.ForeColor = Color.Black;
- }
- label25.Text = label25.Text + System.Convert.ToString(comboBox6.SelectedItem) + ' ';
- obsh.Add(System.Convert.ToInt32(comboBox6.SelectedItem));
- g = System.Convert.ToString(comboBox6.SelectedItem);
- File.AppendAllText(ert,g);
- }}
- void Button11Click(object sender, EventArgs e)
- {
- ki = label24.Text;
- if(comboBox7.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label24.Text = "";
- label24.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label24.ForeColor = Color.Black;
- }
- label24.Text = label24.Text + System.Convert.ToString(comboBox7.SelectedItem) + ' ';
- english.Add(System.Convert.ToInt32(comboBox7.SelectedItem));
- g = System.Convert.ToString(comboBox7.SelectedItem);
- File.AppendAllText(qwe,g);
- }}
- void Button10Click(object sender, EventArgs e)
- {
- ki = label23.Text;
- if(comboBox8.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label23.Text = "";
- label23.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label23.ForeColor = Color.Black;
- }
- label23.Text = label23.Text + System.Convert.ToString(comboBox8.SelectedItem) + ' ';
- info.Add(System.Convert.ToInt32(comboBox8.SelectedItem));
- g = System.Convert.ToString(comboBox8.SelectedItem);
- File.AppendAllText(vb,g);
- }}
- void Button19Click(object sender, EventArgs e)
- {
- ki = label22.Text;
- if(comboBox9.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label22.Text = "";
- label22.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label22.ForeColor = Color.Black;
- }
- label22.Text = label22.Text + System.Convert.ToString(comboBox9.SelectedItem) + ' ';
- geography.Add(System.Convert.ToInt32(comboBox9.SelectedItem));
- g = System.Convert.ToString(comboBox9.SelectedItem);
- File.AppendAllText(bn,g);
- }
- }
- void Button18Click(object sender, EventArgs e)
- {
- ki = label21.Text;
- if(comboBox10.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label21.Text = "";
- label21.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label21.ForeColor = Color.Black;
- }
- label21.Text = label21.Text + System.Convert.ToString(comboBox10.SelectedItem) + ' ';
- biology.Add(System.Convert.ToInt32(comboBox10.SelectedItem));
- g = System.Convert.ToString(comboBox10.SelectedItem);
- File.AppendAllText(nm,g);
- }
- }
- void Button16Click(object sender, EventArgs e)
- {
- ki = label20.Text;
- if(comboBox11.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label20.Text = "";
- label20.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label20.ForeColor = Color.Black;
- }
- label20.Text = label20.Text + System.Convert.ToString(comboBox11.SelectedItem) + ' ';
- physics.Add(System.Convert.ToInt32(comboBox11.SelectedItem));
- g = System.Convert.ToString(comboBox11.SelectedItem);
- File.AppendAllText(mn,g);
- }
- }
- void Label41Click(object sender, EventArgs e)
- {
- }
- void Button17Click(object sender, EventArgs e)
- {
- ki = label19.Text;
- if(comboBox12.SelectedItem != null)
- {
- if(ki[0] == 'Д')
- {
- label19.Text = "";
- label19.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular);
- label19.ForeColor = Color.Black;
- }
- label19.Text = label19.Text + System.Convert.ToString(comboBox12.SelectedItem) + ' ';
- avia.Add(System.Convert.ToInt32(comboBox12.SelectedItem));
- g = System.Convert.ToString(comboBox12.SelectedItem);
- File.AppendAllText(nb,g);
- }
- }
- void Label17Click(object sender, EventArgs e)
- {
- }
- void ComboBox13SelectedIndexChanged(object sender, EventArgs e)
- {
- // TODO: Implement ComboBox13SelectedIndexChanged
- }
- void Label5Click(object sender, EventArgs e)
- {
- // TODO: Implement Label5Click
- }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement