Example #1
0
        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());
                }
            }
        }
Example #2
0
        private void configToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormConfig configForm = new FormConfig();
            configForm.ShowDialog();

            if(configForm.DialogResult == DialogResult.OK)
            {
                timeTrigger.GetTimerParams();
            }
        }