public void OnClickRecords(MainForm form)
 {
     //Set it up to return to main menu after closing
     var nextForm = new RecordsForm(new RecordsController());
     nextForm.FormClosed += delegate { form.Show(); };
     nextForm.Show();
     form.Hide();
 }
Beispiel #2
0
 private void recordsBtn_Click(object sender, EventArgs e)
 {
     Hide();
     using RecordsForm recordsForm = new RecordsForm();
     recordsForm.ShowDialog(this);
     if (!IsDisposed)
     {
         Show();
     }
 }
Beispiel #3
0
        public FormsManager(GUIForm guiForm)
        {
            MainMenu     = new MainMenuForm(guiForm, this);
            Game         = new GameForm(guiForm, this);
            StageNumber  = new StageNumberForm(guiForm, this);
            GameOver     = new GameOverForm(guiForm, this);
            Construction = new ConstructionForm(guiForm, this, Game.Field);
            Options      = new OptionsForm(guiForm, this);
            Records      = new RecordsForm(guiForm, this);

            ActiveForm = MainMenu;
            SetMainMenuForm();
        }
Beispiel #4
0
        public void OpenRecordsForm()
        {
            RecordsForm records = new RecordsForm(_libraryPresenter);

            records.Show();
        }