mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-30 21:00:30 +00:00
25 lines
720 B
C#
25 lines
720 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Windows;
|
|
|
|
namespace Cosmos.Build.Builder {
|
|
public partial class App : Application {
|
|
public static bool IsUserKit;
|
|
public static bool ResetHive;
|
|
public static bool StayOpen;
|
|
|
|
protected override void OnStartup(StartupEventArgs e) {
|
|
var xArgs = new string[e.Args.Length];
|
|
for (int i = 0; i < xArgs.Length; i++) {
|
|
xArgs[i] = e.Args[i].ToUpper();
|
|
}
|
|
IsUserKit = xArgs.Contains("-USERKIT");
|
|
ResetHive = xArgs.Contains("-RESETHIVE");
|
|
StayOpen = xArgs.Contains("-STAYOPEN");
|
|
base.OnStartup(e);
|
|
}
|
|
}
|
|
}
|