public static void RestartWithArgs(CommandLineArgs args) { FormBrowser browserForm = FormManager.TryFind <FormBrowser>(); if (browserForm != null) { browserForm.ForceClose(); ExitCleanup(); RestartWithArgsInternal(args); } }
public static void RestartWithArgs(CommandLineArgs args) { FormBrowser browserForm = Application.OpenForms.OfType <FormBrowser>().FirstOrDefault(); if (browserForm == null) { return; } browserForm.ForceClose(); ExitCleanup(); RestartWithArgsInternal(args); }
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(); }