Exemple #1
0
        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);
            }
        }
Exemple #2
0
        private void addNewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormHerdName ui = new FormHerdName(context, mainForm, logger);

            ui.ShowDialogCenteredOnForm(mainForm);
        }