static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Config.CheckConfigFile()) { Application.Run(new FormMain()); } else { FormConfig formConfig = new FormConfig(); formConfig.ShowDialog(); if (formConfig.DialogResult == DialogResult.OK) { Application.Run(new FormMain()); } } }
private void configToolStripMenuItem_Click(object sender, EventArgs e) { FormConfig configForm = new FormConfig(); configForm.ShowDialog(); if(configForm.DialogResult == DialogResult.OK) { timeTrigger.GetTimerParams(); } }