// -------------------------------------------------------------------------------------------------------------------------------- /// <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()); }
// -------------------------------------------------------------------------------------------------------------------------------- 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); }
// -------------------------------------------------------------------------------------------------------------------------------- /// <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 }