Exemplo n.º 1
0
 private void showMainForm()
 {
     Properties.Settings.Default.Save();
     mainForm form = new mainForm();
     this.Hide();
     form.Show();
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (Properties.Settings.Default.firstRun)
            {
                Application.Run(new chooseForm());
            }
            else
            {
                mainForm form = new mainForm();

                if (args.Contains("/background"))
                {
                    form.ShowInTaskbar = false;
                    form.WindowState = FormWindowState.Minimized;
                }

                Application.Run(form);
            }
        }