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

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateGrid();
            }
        }
Example #2
0
        private void OpenStudent()
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                Student student = dataGridView1.SelectedRows[0].DataBoundItem as Student;

                NewStudentForm form = new NewStudentForm(student);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    UpdateGrid();
                }
            }
        }