From 8c0e67c799562323a7182206ad5bf94bf532d33c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 3 Dec 2014 12:27:14 +0000 Subject: [PATCH] changed setup layout to make the splash screen actually work! --- Saviour Backup System/setup.cs | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Saviour Backup System/setup.cs b/Saviour Backup System/setup.cs index d793b8f..ee617e7 100644 --- a/Saviour Backup System/setup.cs +++ b/Saviour Backup System/setup.cs @@ -16,31 +16,25 @@ namespace Saviour_Backup_System public static string[] runtimeArguements = null; public static mainWindow MW; public static notificationIcon icon; - public static splashScreen SS; public static addBackupWizard ABW; + public static splashScreen SS; public static currentTransfers CT = new currentTransfers(); public static string username = Environment.UserName; //snapshots the username - public static void initProgram(string[] args) - { + public static void initProgram(string[] args) { runtimeArguements = args; - SS = new splashScreen(); - try { SS.display((args[0] == "STARTUP")); } - catch { SS.display(false); } //if it errors, run it as false - - //add in other code here, just for placeholder! - startupBackups(); + SS = new splashScreen(); //displays the splash screen + SS.description.Text = "From Setup..."; + //run any initialising code here! SS.Close(); - SS.Dispose(); + icon = new notificationIcon(); MW = new mainWindow(); - //databaseTools.init(); - MW.showDisplay(); Application.Run(MW); } - private static void startupBackups(){ + private static void startupBackups() { return; }