From 838cbae765cddd21109ac20b801244770fad5e93 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 10 Aug 2014 22:47:02 +0100 Subject: [PATCH] removed some of the testing code --- Saviour Backup System/setup.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Saviour Backup System/setup.cs b/Saviour Backup System/setup.cs index 959f011..a75f4f0 100644 --- a/Saviour Backup System/setup.cs +++ b/Saviour Backup System/setup.cs @@ -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. }