示例#1
0
 private void buttonAddMoreAnimals_Click(object sender, EventArgs e)
 {
     if (!IsDigitsOnlyAndNotEmpty(textBoxAnimalsAmountToAdd.Text))
     {
         return;
     }
     Animals.AddMore(sqlConnection, dataGridViewZoo, comboBoxSpecies.Text, textBoxAnimalsAmountToAdd.Text);
 }
示例#2
0
 private void buttonOneMoreAnimal_Click(object sender, EventArgs e)
 {
     //Animals.AddOneMore(sqlConnection, dataGridViewZoo, comboBoxSpecies.Text);
     Animals.AddMore(sqlConnection, dataGridViewZoo, comboBoxSpecies.Text, Int32.Parse(textBoxNimberOfNewAnimals.Text));
 }