changed setup layout to make the splash screen actually work!
This commit is contained in:
parent
b668ee9865
commit
8c0e67c799
1 changed files with 7 additions and 13 deletions
|
@ -16,27 +16,21 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue