예제 #1
0
        private void btnAddClassAttendance_Click(object sender, EventArgs e)
        {
            //Set the pannel height
            panelLeft.Height = btnAddClassAttendance.Height;
            panelLeft.Top    = btnAddClassAttendance.Top;

            // go to class Attendance form
            this.Hide();
            ClassAttendanceForm frm = ClassAttendanceForm.SetGUIPlacements();

            frm.Show();
        }
예제 #2
0
 public static ClassAttendanceForm SetGUIPlacements()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new ClassAttendanceForm();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }