예제 #1
0
 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);
 }
예제 #2
0
 private void FormAddPlay_Load(object sender, EventArgs e)
 {
     panel1.Visible = false;
     this.Width     = 330;
     WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1);
     WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox2);
     WorkWithBD.ReadTournamentOfDatabaseInComboBox(comboBox3);
 }
예제 #3
0
        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);
        }
예제 #4
0
 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);
 }
예제 #6
0
 private void FormAddPlayer_Load(object sender, EventArgs e)
 {
     WorkWithBD.ReadTeamOfDatabaseInComboBox(comboBox1);
     WorkWithBD.ReadPositionOfDatabaseInComboBox(comboBox2);
 }