1
Fork 0

changed setup layout to make the splash screen actually work!

This commit is contained in:
Jake Howard 2014-12-03 12:27:14 +00:00
parent b668ee9865
commit 8c0e67c799

View file

@ -16,31 +16,25 @@ namespace Saviour_Backup_System
public static string[] runtimeArguements = null; public static string[] runtimeArguements = null;
public static mainWindow MW; public static mainWindow MW;
public static notificationIcon icon; public static notificationIcon icon;
public static splashScreen SS;
public static addBackupWizard ABW; public static addBackupWizard ABW;
public static splashScreen SS;
public static currentTransfers CT = new currentTransfers(); public static currentTransfers CT = new currentTransfers();
public static string username = Environment.UserName; //snapshots the username public static string username = Environment.UserName; //snapshots the username
public static void initProgram(string[] args) public static void initProgram(string[] args) {
{
runtimeArguements = 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.Close();
SS.Dispose();
icon = new notificationIcon(); icon = new notificationIcon();
MW = new mainWindow(); MW = new mainWindow();
//databaseTools.init();
MW.showDisplay();
Application.Run(MW); Application.Run(MW);
} }
private static void startupBackups(){ private static void startupBackups() {
return; return;
} }