mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-08 18:55:35 +08:00
@@ -6,10 +6,18 @@
|
||||
public static MainWindow MainWindow;
|
||||
public string[] commandLineArgs;
|
||||
public CommandLineOptions parsedOptions;
|
||||
public static string AppVersion { get; set; } = Assembly.GetAssembly(typeof(App)).GetName().Version.ToString();
|
||||
public static string AppVersion { get; set; } = Assembly.GetAssembly(typeof(App)).GetName().Version.ToString();
|
||||
private Mutex mutex;
|
||||
|
||||
public App()
|
||||
{
|
||||
bool isNewInstance;
|
||||
mutex = new Mutex(true,"CRSim",out isNewInstance);
|
||||
if (!isNewInstance)
|
||||
{
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
var args = Environment.GetCommandLineArgs();
|
||||
parsedOptions = CommandLineParser.Parse(args);
|
||||
if (parsedOptions.Debug)
|
||||
|
||||
@@ -8,6 +8,7 @@ global using System.Collections.Generic;
|
||||
global using System.Collections.ObjectModel;
|
||||
global using System.Reflection;
|
||||
global using System.Timers;
|
||||
global using System.Threading;
|
||||
|
||||
global using Microsoft.UI.Xaml;
|
||||
global using Microsoft.UI.Xaml.Controls;
|
||||
|
||||
Reference in New Issue
Block a user