void AddNewVeteranButtonClick(object sender, EventArgs e) { NewVeteran newVeteranDialog = new NewVeteran(false, ""); newVeteranDialog.ShowDialog(); update_breeder_list(); update_dog_list(); }
void UpdateVeteranButtonClick(object sender, EventArgs e) { if (veteran_index != -1) { var modify_name = selectVeteranBox.Items[veteran_index].ToString(); NewVeteran newVeteranDialog = new NewVeteran(true, modify_name); newVeteranDialog.ShowDialog(); } else { MessageBox.Show("Veteran does not exist"); } }