Example #1
0
 private void B_EditStudent_Click(object sender, EventArgs e)
 {
     if (DGV_Students.SelectedRows.Count == 1)
     {
         StudentAccessLayer SAL = new StudentAccessLayer(Session.Database);
         F_StudentRegister  RS  = new F_StudentRegister(SAL.GetStudentById(Convert.ToInt32(DGV_Students.SelectedRows[0].Cells[0].Value.ToString())));
         RS.Show();  // Register form doubles up as edit form
     }
     else
     {
         MessageBox.Show("You have selected more than 1 or 0 students.");
     }
 }
Example #2
0
        private void B_RegisterStudent_Click(object sender, EventArgs e)
        {
            F_StudentRegister RS = new F_StudentRegister();

            RS.Show();
        }