private void frmMain_Load(object sender, EventArgs e) { var Exit = false; while (!File.Exists(MainController.Get().Configuration.ExecutablePath)) { var sets = new frmSettings(); if (sets.ShowDialog() != DialogResult.OK) { Exit = true; break; } } if (Exit) Close(); }
private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { var settings = new frmSettings(); settings.ShowDialog(); }