Example #1
0
        void AddNewDogButtonClick(object sender, EventArgs e)
        {
            NewDog newDogDialog = new NewDog(false, "");

            newDogDialog.ShowDialog();
            update_breeder_list();
            update_dog_list();
        }
Example #2
0
 void UpdateDogButtonClick(object sender, EventArgs e)
 {
     if (dog_index != -1)
     {
         var    modify_name  = selectDogBox.Items[dog_index].ToString();
         NewDog newDogDialog = new NewDog(true, modify_name);
         newDogDialog.ShowDialog();
     }
     else
     {
         MessageBox.Show("Dog does not exist");
     }
 }