Пример #1
0
        private void btnEditStudent_Click(object sender, RoutedEventArgs e)
        {
            if (TableValues(0) != null)
            {
                DAOStudents dao = new DAOStudents();
                TOStudent   i   = new TOStudent();
                i = dao.Selection(TableValues(0));

                REG_student reg_s = new REG_student(i);
                reg_s.ShowDialog();

                LoadScreen();
            }
        }
Пример #2
0
        private void tblStudents_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (TableValues(0) != null)
            {
                DAOStudents dao = new DAOStudents();
                TOStudent   i   = new TOStudent();
                i = dao.Selection(TableValues(0));

                REG_student reg_s = new REG_student(i);
                reg_s.ShowDialog();

                LoadScreen();
            }
        }