Exemplo n.º 1
0
        public FourInARowGame()
        {
            MainMenuForm mainMenuForm = new MainMenuForm(k_MinDimension, k_MaxDimension);

            mainMenuForm.ShowDialog();
            if (mainMenuForm.DialogResult == DialogResult.OK)
            {
                OnStart(mainMenuForm.GameSettings);
            }
        }
Exemplo n.º 2
0
        public void ShowMovieList()
        {
            // create an object of MainMenuForm
            MainMenuForm mmf = new MainMenuForm(cinema, currentUser);

            // switch to tPageViewMemberList
            mmf.MoviesTabCtrl.SelectedTab = mmf.MoviesTabCtrl.TabPages[8];

            // display MainMenuForm object created
            mmf.ShowDialog();
        }
Exemplo n.º 3
0
        public void ViewPaymentHistory()
        {
            // create an object of MainMenuForm
            MainMenuForm mmf = new MainMenuForm(cinema, currentUser);

            // switch to tPageView
            mmf.MoviesTabCtrl.SelectedTab = mmf.MoviesTabCtrl.TabPages[10];

            // display MainMenuForm object created
            mmf.ShowDialog();
        }
Exemplo n.º 4
0
        public void RedeemBonus()
        {
            // create an object of MainMenuForm
            MainMenuForm mmf = new MainMenuForm(cinema, currentUser);

            // switch to tPageRedeemBonus
            mmf.MoviesTabCtrl.SelectedTab      = mmf.MoviesTabCtrl.TabPages[6];
            mmf.btnChooseSpecificMovie.Visible = false;// for purchase ticket

            // display MainMenuForm object created
            mmf.ShowDialog();
        }
Exemplo n.º 5
0
        // instance methods

        // view seat status for specific movie
        public void ViewSeatsForSpecificMovie()
        {
            // create an object of MainMenuForm
            MainMenuForm mmf = new MainMenuForm(cinema, currentUser);

            // switch to tPageChooseSpecificMovie
            mmf.MoviesTabCtrl.SelectedTab      = mmf.MoviesTabCtrl.TabPages[0];
            mmf.btnChooseSpecificMovie.Visible = true;// for purchase ticket

            // display MainMenuForm object created
            mmf.ShowDialog();
        }
Exemplo n.º 6
0
        // view seat status for all movies
        public void ViewSeatsForAllMovies()
        {
            //// get the movieList from the cinema object
            //Movie[] movies = cinema.GetMovieList();

            // create an object of MainMenuForm
            MainMenuForm mmf = new MainMenuForm(cinema, currentUser);

            // set the Visible property of btnRedeem1, btnRedeem2 and btnRedeem3 to false
            mmf.btnRedeem1.Visible = false;
            mmf.btnRedeem2.Visible = false;
            mmf.btnRedeem3.Visible = false;

            // switch to tPageMovie1
            mmf.MoviesTabCtrl.SelectedTab = mmf.MoviesTabCtrl.TabPages[1];

            // display MainMenuForm object created
            mmf.ShowDialog();
        }