예제 #1
0
        private void AddStudent_Click(object sender, EventArgs e)
        {
            AddOrUpdaetStudent student = new AddOrUpdaetStudent();

            student.ShowDialog();
            Refresh();
        }
예제 #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            int id                     = int.Parse(dgStudent.SelectedCells[0].FormattedValue.ToString());
            var studentModel           = GloblMain.dbo.StudentDMs.Find(id);
            AddOrUpdaetStudent student = new AddOrUpdaetStudent(studentModel);

            student.ShowDialog();
            Refresh();
        }