public void Action() { List <List <string> > list = new List <List <string> >(); GamerControl gc = new GamerControl(); list = gc.FindGamer(textBox1.Text, textBox2.Text); ShowNames(list[0], list[1]); ShowSalaries(list[2]); ShowStatusForGame(list[3]); ShowStatusHealth(list[4]); ShowComand(list[5]); }
private void button1_Click(object sender, EventArgs e) { GamerControl control = new GamerControl(); if ((textBox1.Text != null) && (textBox2.Text != null) && (comboBox1.SelectedIndex > -1) && (comboBox2.SelectedIndex > -1) && (textBox3.Text != null) && (comboBox3.SelectedIndex > -1)) { control.AddGamer(textBox1.Text, textBox2.Text, Convert.ToBoolean(comboBox1.SelectedIndex), Convert.ToBoolean(comboBox2.SelectedIndex), Convert.ToDouble(textBox3.Text), comboBox3.SelectedItem.ToString()); this.Hide(); } else { label7.Visible = true; } }
private void AddGamer_Load(object sender, EventArgs e) { Action.GamerControl dc = new GamerControl(); comboBox1.Items.Insert(0, "З вадами"); comboBox1.Items.Insert(1, "Здоровий"); comboBox2.Items.Insert(0, "Не грає"); comboBox2.Items.Insert(1, "Грає"); AddValues(); //comboBox3.Items.Insert(0, "Dinamo"); //comboBox3.Items.Insert(1, "Spartak"); //comboBox3.Items.Insert(2, "Zara"); //comboBox3.Items.Insert(3, "Libid"); }
private void AddGamer_Load(object sender, EventArgs e) { Action.GamerControl dc = new GamerControl(); AddValues(); }