Beispiel #1
0
        private void btnPrivateTuition_Click(object sender, EventArgs e)
        {
            frmPrivateTuition PrivateT = new frmPrivateTuition();

            PrivateT.Show();
            this.Close();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmPrivateTuition Menu = new frmPrivateTuition();

            Menu.Show();
            this.Hide();
        }
Beispiel #3
0
        // RETURN TO MAIN MENU
        private void btnReturn_Click(object sender, EventArgs e)
        {
            frmPrivateTuition Mainmenu = new frmPrivateTuition();

            Mainmenu.Show();
            this.Hide();
        }
        private void btnReturn_Click(object sender, EventArgs e)
        {
            frmPrivateTuition PrivateTuition = new frmPrivateTuition();

            PrivateTuition.Show();
            this.Hide();
        }
        // RETURN TO MAIN MENU
        private void btnReturn_Click(object sender, EventArgs e)
        {
            GlobalVariables.CalendarReturn = false;
            frmPrivateTuition PrivateTuition = new frmPrivateTuition();

            PrivateTuition.Show();
            this.Hide();
        }
 public void CheckPreviousForm()
 {
     if (GlobalVariables.PreviousForm == "StudentTable")
     {
         frmStudents StudentTable = new frmStudents();
         StudentTable.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "TeacherTable")
     {
         frmTeachers TeacherTable = new frmTeachers();
         TeacherTable.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "InstrumentTable")
     {
         frmInstrument InstrumentTable = new frmInstrument();
         InstrumentTable.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "RoomTable")
     {
         frmRoom RoomTable = new frmRoom();
         RoomTable.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "GradeTable")
     {
         frmGrade GradeTable = new frmGrade();
         GradeTable.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "LessonBundleTable")
     {
         frmLessonBundle LessonBundleTable = new frmLessonBundle();
         LessonBundleTable.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "Menu")
     {
         frmPrivateTuition Menu = new frmPrivateTuition();
         Menu.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "ScheduledLessonTable")
     {
         frmScheduleTable Schedule = new frmScheduleTable();
         Schedule.Show();
         this.Hide();
     }
     else if (GlobalVariables.PreviousForm == "PurchasedLessonBundleTable")
     {
         PurchasedLessonBundles Purchase = new PurchasedLessonBundles();
         Purchase.Show();
         this.Hide();
     }
 }
        // TEST BUTTON
        private void btnIndex_Click(object sender, EventArgs e)
        {
            // This is merely a testing program.
            GlobalVariables.UserLoggedIn = true;

            frmPrivateTuition Mainmenu = new frmPrivateTuition();

            Mainmenu.Show();
            this.Hide();
            tLoad.Stop();
        }
Beispiel #8
0
        private void btnReturn_Click(object sender, EventArgs e)
        {
            GlobalVariables.SelectedTime         = "";
            GlobalVariables.SelectedDay          = 0;
            GlobalVariables.SelectedMonthInt     = 0;
            GlobalVariables.SelectedMonthString  = "";
            GlobalVariables.SelectedYear         = 0;
            GlobalVariables.SelectedScheduleDate = "00/00/0000";

            A = 0;
            B = 0;

            frmPrivateTuition Main = new frmPrivateTuition();

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