//
        private void btnGoBackToManageForm_Click(object sender, EventArgs e)
        {
            panelLeft.Height = btnGoBackToManageForm.Height;
            panelLeft.Top    = btnGoBackToManageForm.Top;
            MessageBox.Show("You are going to leave this page");
            this.Hide();
            FormManageStudents frm = FormManageStudents.SetGUIPlacements();

            frm.Show();
        }
Example #2
0
        private void btnManageStudents_Click(object sender, EventArgs e)
        {
            //panel start
            panelLeft.Height = btnManageStudents.Height;
            panelLeft.Top    = btnManageStudents.Top;
            //pannel close

            this.Hide();
            FormManageStudents manageStudent = new FormManageStudents();

            manageStudent.Show();
        }
Example #3
0
 public static FormManageStudents SetGUIPlacements()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FormManageStudents();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }
Example #4
0
        private void goBackToManageForm_Click(object sender, EventArgs e)
        {
            panelLeft.Height = goBackToManageForm.Height;
            panelLeft.Top    = goBackToManageForm.Top;

            //Go to Manage Student Form

            this.Hide();
            FormManageStudents frm = new FormManageStudents();

            frm.Show();
        }
        private void btnGoBackToManageForm_Click(object sender, EventArgs e)
        {
            //Set the pannel height
            panelLeft.Height = btnGoBackToManageForm.Height;
            panelLeft.Top    = btnGoBackToManageForm.Top;
            //go back to form manage student
            MessageBox.Show("You are going to leave this Form");
            this.Hide();

            FormManageStudents frm = FormManageStudents.SetGUIPlacements();

            frm.Show();
        }