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(); }
private void recordsBtn_Click(object sender, EventArgs e) { Hide(); using RecordsForm recordsForm = new RecordsForm(); recordsForm.ShowDialog(this); if (!IsDisposed) { Show(); } }
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(); }
public void OpenRecordsForm() { RecordsForm records = new RecordsForm(_libraryPresenter); records.Show(); }