private static void AppShutDown(AppLib.Common.SingleInstanceApp singleInstance) { singleInstance.Close(); _settings.Save(); _log.Info("Application shutdown"); _log.WriteToFile(); WinSparkle.win_sparkle_cleanup(); }
public static void Main() { SetupAutoUpdater(); SetupIoCContainer(); var singleInstance = new AppLib.Common.SingleInstanceApp(AppConstants.AppName); singleInstance.CommandLineArgumentsRecieved += CommandLineArgumentsRecieved; if (singleInstance.IsFirstInstance) { App application = SetupApplication(); _moduleLoader.Add(new FileBrowser.FileBrowserModule()); application.Run(application.MainWindow); AppShutDown(singleInstance); } else { singleInstance.SubmitParameters(); } }