Beispiel #1
0
        private void создатьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewManagerForm form = new NewManagerForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateData();
            }
        }
Beispiel #2
0
        private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                Manager manager = dataGridView1.SelectedRows[0].DataBoundItem as Manager;

                NewManagerForm form = new NewManagerForm(manager);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    UpdateData();
                }
            }
        }