示例#1
0
        private void AboutClick(object sender, EventArgs e)
        {
            this.Hide();
            aboutUs aboutForm = new aboutUs();

            aboutForm.Show();
        }
示例#2
0
        private void aboutUsButton_LinkClicked_1(object sender, EventArgs e)
        {
            this.Hide();
            aboutUs aboutForm = new aboutUs();

            aboutForm.Show();
        }
示例#3
0
        private void aboutUsButton_LinkClicked(object sender, EventArgs e)
        {
            this.Hide();
            aboutUs f1 = new aboutUs();

            f1.ShowDialog();
            this.Close();
        }
示例#4
0
        public void CheckWhichFormWasOpened()
        {
            string previousPage = Login.previousPage;

            if (previousPage == "Menu")
            {
                Menu menuForm = new Menu();
                menuForm.Show();
                this.Hide();
            }
            else if (previousPage == "Reservation")
            {
                this.Hide();
                Reservation reservationForm = new Reservation(Login.person.id);
                reservationForm.Show();
            }
            else if (previousPage == "Dashboard")
            {
                this.Hide();
                Dashboard dashboardForm = new Dashboard(person.id);
                dashboardForm.Show();
            }
            else if (previousPage == "checkReservations")
            {
                this.Hide();
                checkReservation checkReservationForm = new checkReservation(Login.person.id);
                checkReservationForm.Show();
            }
            else if (previousPage == "ContactUs")
            {
                this.Hide();
                contactUs contactForm = new contactUs();
                contactForm.Show();
            }
            else if (previousPage == "AboutUs")
            {
                this.Hide();
                aboutUs aboutForm = new aboutUs();
                aboutForm.Show();
            }
            else if (previousPage == "Home")
            {
                this.Hide();
                homePage homeForm = new homePage();
                homeForm.Show();
            }
            else
            {
                this.Hide();
                homePage Homepage = new homePage();
                Homepage.Show();
            }
        }