예제 #1
0
        void AddNewPuppyButtonClick(object sender, EventArgs e)
        {
            NewPuppy newPuppyDialog = new NewPuppy(false, "");

            newPuppyDialog.ShowDialog();
            update_breeder_list();
            update_dog_list();
        }
예제 #2
0
 void UpdatePuppyButtonClick(object sender, EventArgs e)
 {
     if (puppy_index != -1)
     {
         var      modify_name    = selectPuppyBox.Items[puppy_index].ToString();
         NewPuppy newPuppyDialog = new NewPuppy(true, modify_name);
         newPuppyDialog.ShowDialog();
     }
     else
     {
         MessageBox.Show("Puppy does not exist");
     }
 }