コード例 #1
0
 public static FormStudentAttendance SetGUIPlacements()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FormStudentAttendance();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }
コード例 #2
0
        private void btnAddAttendance_Click(object sender, EventArgs e)
        {
            //Set the pannel height
            panelLeft.Height = btnAddAttendance.Height;
            panelLeft.Top    = btnAddAttendance.Top;

            //Go to student Attendance form
            FormStudentAttendance frm = FormStudentAttendance.SetGUIPlacements();

            this.Hide();
            frm.Show();
        }