private void FormEditPlayer_Load(object sender, EventArgs e) { WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1); WorkWithBD.ReadPositionOfDatabaseInComboBox(comboBox2); comboBox1.SelectedIndex = comboBox1.Items.IndexOf(Team); comboBox2.SelectedIndex = comboBox2.Items.IndexOf(Position); }
private void FormAddPlay_Load(object sender, EventArgs e) { panel1.Visible = false; this.Width = 330; WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1); WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox2); WorkWithBD.ReadTournamentOfDatabaseInComboBox(comboBox3); }
private void FormEditPlay_Load(object sender, EventArgs e) { if (numericUpDown1.Value == numericUpDown2.Value) { panel1.Visible = false; this.Width = 330; } else { this.Width = 610; panel1.Visible = true; checkBox1.Checked = true; } WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1); WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox2); WorkWithBD.ReadTournamentOfDatabaseInComboBox(comboBox3); comboBox1.SelectedIndex = comboBox1.Items.IndexOf(Command1); comboBox2.SelectedIndex = comboBox2.Items.IndexOf(Command2); comboBox3.SelectedIndex = comboBox3.Items.IndexOf(Tournament); }
private void FormAddTournament_Load(object sender, EventArgs e) { WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1); }
private void FormEditTournament_Load(object sender, EventArgs e) { WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1); comboBox1.SelectedIndex = comboBox1.Items.IndexOf(NameTeam); }
private void FormAddPlayer_Load(object sender, EventArgs e) { WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1); WorkWithBD.ReadPositionOfDatabaseInComboBox(comboBox2); }