Пример #1
0
        // --------------------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// Opens the Game Overview
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void startButton_Click(object sender, EventArgs e)
        {
            StartView startView = new StartView();

            startView.Open(this);
            SaveFileManager.Save(PAPIApplication.GetSettings());
        }
Пример #2
0
        // --------------------------------------------------------------------------------------------------------------------------------

        private void returnButton_Click(object sender, EventArgs e)
        {
            SaveFileManager.Save(PAPIApplication.GetSettings());
            WfLogger.Log(this, LogLevel.DEBUG, "Return button was clicked, options are being saved and view changes to " + ViewController.lastView.GetType());
            ViewController.lastView.Open(this);
        }
Пример #3
0
        // --------------------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// Shuts down the application
        /// </summary>
        private void quitButton_Click(object sender, EventArgs e)
        {
            SaveFileManager.Save(PAPIApplication.GetSettings());
            Application.Exit();         // To exit the WinForm App
            System.Environment.Exit(0); // To exit the program
        }