mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Cleanup
This commit is contained in:
@@ -52,7 +52,6 @@ namespace mRemoteNG.App
|
||||
DefaultConnectionInheritance.Instance.LoadFrom(Settings.Default, (a)=>"InhDefault"+a);
|
||||
}
|
||||
|
||||
|
||||
public void SetDefaultLayout()
|
||||
{
|
||||
frmMain.Default.pnlDock.Visible = false;
|
||||
@@ -87,17 +86,14 @@ namespace mRemoteNG.App
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void LogStartupData()
|
||||
{
|
||||
if (Settings.Default.WriteLogFile)
|
||||
{
|
||||
LogApplicationData();
|
||||
LogCmdLineArgs();
|
||||
LogSystemData();
|
||||
LogCLRData();
|
||||
LogCultureData();
|
||||
}
|
||||
if (!Settings.Default.WriteLogFile) return;
|
||||
LogApplicationData();
|
||||
LogCmdLineArgs();
|
||||
LogSystemData();
|
||||
LogCLRData();
|
||||
LogCultureData();
|
||||
}
|
||||
|
||||
private void LogSystemData()
|
||||
@@ -184,13 +180,10 @@ namespace mRemoteNG.App
|
||||
$"System Culture: {Thread.CurrentThread.CurrentUICulture.Name}/{Thread.CurrentThread.CurrentUICulture.NativeName}");
|
||||
}
|
||||
|
||||
|
||||
public void CreateConnectionsProvider()
|
||||
{
|
||||
if (Settings.Default.UseSQLServer)
|
||||
{
|
||||
PeriodicConnectionsUpdateChecker _sqlConnectionsProvider = new PeriodicConnectionsUpdateChecker();
|
||||
}
|
||||
if (!Settings.Default.UseSQLServer) return;
|
||||
Runtime.SqlConnProvider = new PeriodicConnectionsUpdateChecker(new SqlConnectionsUpdateChecker());
|
||||
}
|
||||
|
||||
private void CheckForUpdate()
|
||||
@@ -246,7 +239,6 @@ namespace mRemoteNG.App
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void CheckForAnnouncement()
|
||||
{
|
||||
if (_appUpdate == null)
|
||||
@@ -290,7 +282,6 @@ namespace mRemoteNG.App
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void ParseCommandLineArgs()
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user