mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Made Startup slightly less static
This commit is contained in:
@@ -24,7 +24,7 @@ namespace mRemoteNG.App
|
||||
|
||||
private static void StartApplication()
|
||||
{
|
||||
Startup.InitializeProgram();
|
||||
Startup.Instance.InitializeProgram();
|
||||
Application.Run(frmMain.Default);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,11 @@ namespace mRemoteNG.App
|
||||
private static readonly Startup _singletonInstance = new Startup();
|
||||
private AppUpdater _appUpdate;
|
||||
|
||||
public static Startup Instance
|
||||
{
|
||||
get { return _singletonInstance; }
|
||||
}
|
||||
|
||||
private Startup()
|
||||
{
|
||||
_appUpdate = new AppUpdater();
|
||||
@@ -35,14 +40,14 @@ namespace mRemoteNG.App
|
||||
{
|
||||
}
|
||||
|
||||
public static void InitializeProgram()
|
||||
public void InitializeProgram()
|
||||
{
|
||||
Debug.Print("---------------------------" + Environment.NewLine + "[START] - " + Convert.ToString(DateTime.Now, CultureInfo.InvariantCulture));
|
||||
_singletonInstance.LogStartupData();
|
||||
//CheckCompatibility();
|
||||
_singletonInstance.ParseCommandLineArgs();
|
||||
LogStartupData();
|
||||
ParseCommandLineArgs();
|
||||
IeBrowserEmulation.Register();
|
||||
_singletonInstance.GetConnectionIcons();
|
||||
GetConnectionIcons();
|
||||
}
|
||||
|
||||
private void CheckCompatibility()
|
||||
|
||||
Reference in New Issue
Block a user