void AddNewPuppyButtonClick(object sender, EventArgs e) { NewPuppy newPuppyDialog = new NewPuppy(false, ""); newPuppyDialog.ShowDialog(); update_breeder_list(); update_dog_list(); }
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"); } }