private void button4_Click(object sender, EventArgs e) { for (int hujintao = 0; hujintao < 5; hujintao++) { array_l[hujintao] = new orgp(); } array_l[i_l].id = Convert.ToInt32(comboBox1.SelectedValue);//id from language table array_l[i_l].ma = Convert.ToInt32(comboBox2.SelectedValue);//id from script table i_l = i_l + 1; }
private void addmoreAO_Click(object sender, EventArgs e) { for (int hujintao = 0; hujintao < 5; hujintao++) { array[hujintao] = new orgp(); } array[i].id = (int)comboBox2.SelectedValue; if ((string)comboBox1.SelectedValue == "Mention") array[i].ma = 1; else array[i].ma = 2; i = i + 1; }
private void button1_Click(object sender, EventArgs e) { for (int hujintao = 0; hujintao < 5;hujintao++ ) { array_p[hujintao] = new orgp(); } /*people p = new people(); p.Name = comboBox2.Text; p.MA = comboBox1.Text; peoplelist.Add(p); */ array_p[i_p].id = Convert.ToInt32(comboBox2.SelectedValue); if ((string)comboBox1.SelectedValue == "Mention") array_p[i_p].ma = 1; else array_p[i_p].ma = 2; i_p = i_p + 1; }