Пример #1
0
        private void btn_ViewStudentDetails_Click(object sender, EventArgs e)
        {
            Form_ShowDetailStudent formDetailStudent = new Form_ShowDetailStudent(studentSelected);

            //this.Visible = false;
            try
            {
                formDetailStudent.ShowDialog();
            }
            catch (Exception) {}
            this.Show();
        }
 private void btn_showCourses_Click(object sender, EventArgs e)
 {
     if (studentAsPremission != null)
     {
         Form_ShowDetailStudent formDetailStudent = new Form_ShowDetailStudent(studentAsPremission);
         try
         {
             formDetailStudent.ShowDialog();
         }
         catch (Exception) { }
         this.Show();
     }
     else if (studentSelected != null)
     {
         Form_ShowDetailStudent formDetailStudent = new Form_ShowDetailStudent(studentSelected);
         try
         {
             formDetailStudent.ShowDialog();
         }
         catch (Exception) { }
         this.Show();
     }
 }