removed some of the testing code
This commit is contained in:
parent
0ac0f2d86a
commit
838cbae765
1 changed files with 3 additions and 5 deletions
|
@ -18,22 +18,20 @@ namespace Saviour_Backup_System
|
||||||
internal static ContextMenu contextMenu;
|
internal static ContextMenu contextMenu;
|
||||||
static string databaseName = databaseTools.databaseName;
|
static string databaseName = databaseTools.databaseName;
|
||||||
internal static string[] runtimeArguements = null;
|
internal static string[] runtimeArguements = null;
|
||||||
|
internal static mainWindow MW = null;
|
||||||
|
|
||||||
|
|
||||||
internal static void initProgram(string[] args)
|
internal static void initProgram(string[] args)
|
||||||
{
|
{
|
||||||
MessageBox.Show(args.Length.ToString());
|
|
||||||
runtimeArguements = args;
|
runtimeArguements = args;
|
||||||
notificationIcon.init();
|
notificationIcon.init();
|
||||||
|
|
||||||
if (args.Length == 0) //if the program is run out-right or not from startup
|
if (args.Length == 0) //if the program is run out-right or not from startup
|
||||||
{
|
{
|
||||||
Application.Run(new mainWindow());
|
MW = new mainWindow();
|
||||||
}
|
}
|
||||||
else if (args[0] == "STARTUP") //if the program is run when the computer starts up
|
else if (args[0] == "STARTUP") //if the program is run when the computer starts up
|
||||||
{
|
{
|
||||||
|
MW = new mainWindow();
|
||||||
}
|
}
|
||||||
//if (!File.Exists(databaseName)) { setupDatabase(); } // If the program has been run before, then the database will exist, so use that to test it.
|
//if (!File.Exists(databaseName)) { setupDatabase(); } // If the program has been run before, then the database will exist, so use that to test it.
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue