/// <summary> /// Runs the application in GUI mode. /// </summary> /// <param name="args">The command-line arguments passed to the application.</param> /// <returns>The exit status code to end the process with.</returns> public static ExitCode RunGui(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ErrorReportForm.SetupMonitoring(new Uri("https://0install.de/error-report/")); using var handler = new GuiTaskHandler(); return(ProgramUtils.Run(args, handler, gui: true)); }
/// <summary> /// Runs the application in GUI mode. /// </summary> /// <param name="args">The command-line arguments passed to the application.</param> /// <returns>The exit status code to end the process with.</returns> private static ExitCode RunGui(string[] args) { using (var handler = new GuiTaskHandler()) return Run(args, handler, gui: true); }
/// <summary> /// Runs the application in GUI mode. /// </summary> /// <param name="args">The command-line arguments passed to the application.</param> /// <returns>The exit status code to end the process with.</returns> private static ExitCode RunGui(string[] args) { using (var handler = new GuiTaskHandler()) return(Run(args, handler, gui: true)); }