Esempio n. 1
0
        public static void RestartWithArgs(CommandLineArgs args)
        {
            FormBrowser browserForm = FormManager.TryFind <FormBrowser>();

            if (browserForm != null)
            {
                browserForm.ForceClose();

                ExitCleanup();
                RestartWithArgsInternal(args);
            }
        }
Esempio n. 2
0
        public static void RestartWithArgs(CommandLineArgs args)
        {
            FormBrowser browserForm = Application.OpenForms.OfType <FormBrowser>().FirstOrDefault();

            if (browserForm == null)
            {
                return;
            }

            browserForm.ForceClose();

            ExitCleanup();
            RestartWithArgsInternal(args);
        }
Esempio n. 3
0
        public static void RestartWithArgs(CommandLineArgs args)
        {
            FormBrowser browserForm = Application.OpenForms.OfType <FormBrowser>().FirstOrDefault();

            if (browserForm == null)
            {
                return;
            }

            args.AddFlag(Arguments.ArgRestart);

            browserForm.ForceClose();
            ExitCleanup();

            Process.Start(Application.ExecutablePath, args.ToString());
            Application.Exit();
        }