private void renameToolStripMenuItem_Click(object sender, EventArgs e) { var selHerd = SelectedHerd; if (selHerd == null) { MessageBox.Show("Please select a herd first."); } else { FormHerdName ui = new FormHerdName(context, mainForm, logger, selHerd.HerdId); ui.ShowDialogCenteredOnForm(mainForm); } }
private void addNewToolStripMenuItem_Click(object sender, EventArgs e) { FormHerdName ui = new FormHerdName(context, mainForm, logger); ui.ShowDialogCenteredOnForm(mainForm); }