public static void Main(string[] args) { SingleInstanceWatcher(); var app = new GSApp(args.ToList()); app.Run(); }
/// <summary> /// Raises the event, which happens only the first time /// that the application is started. /// </summary> /// <param name = "e">The <see cref = "Microsoft.VisualBasic.ApplicationServices.StartupEventArgs" /> /// instance containing the event data.</param> /// <returns></returns> protected override bool OnStartup(Microsoft.VisualBasic.ApplicationServices.StartupEventArgs e) { var app = new GSApp(); GSApp.InputArgs = new List <string>(e.CommandLine); app.Run(); return(false); }