1
Fork 0

removed some of the testing code

This commit is contained in:
Jake Howard 2014-08-10 22:47:02 +01:00
parent 0ac0f2d86a
commit 838cbae765

View file

@ -18,22 +18,20 @@ namespace Saviour_Backup_System
internal static ContextMenu contextMenu;
static string databaseName = databaseTools.databaseName;
internal static string[] runtimeArguements = null;
internal static mainWindow MW = null;
internal static void initProgram(string[] args)
{
MessageBox.Show(args.Length.ToString());
runtimeArguements = args;
notificationIcon.init();
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
{
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.
}