Splash screen shown on startup and hiding after completion of the load method of the main form

This commit is contained in:
Faryan Rezagholi
2018-12-21 00:10:59 +01:00
parent 9b722eacdb
commit 2a0032a199
2 changed files with 5 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ namespace mRemoteNG.App
CatchAllUnhandledExceptions();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
FrmSplashScreen frmSplashScreen = FrmSplashScreen.getInstance();
frmSplashScreen.Show();
Application.Run(FrmMain.Default);
}

View File

@@ -189,6 +189,9 @@ namespace mRemoteNG.UI.Forms
if (!panelAdder.DoesPanelExist(panelName))
panelAdder.AddPanel(panelName);
}
FrmSplashScreen frmSplashScreen = FrmSplashScreen.getInstance();
frmSplashScreen.Close();
}
private void ApplyLanguage()