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(); }
public static ClassAttendanceForm SetGUIPlacements() { if (instance == null || instance.IsDisposed) { instance = new ClassAttendanceForm(); } else { instance.BringToFront(); } return(instance); }