minor clean up

This commit is contained in:
Sean Kaim
2019-01-07 17:34:44 -05:00
parent 4ac51a7e58
commit 9fef6dd2d3
10 changed files with 7 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using mRemoteNG.App;

View File

@@ -1,5 +1,4 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using mRemoteNG.App;
using mRemoteNG.Tools;

View File

@@ -1,5 +1,4 @@
using System;
using System.Drawing;
using mRemoteNG.Config;
namespace mRemoteNG.UI.Forms.OptionsPages

View File

@@ -1,5 +1,4 @@
using System;
using System.Drawing;
using mRemoteNG.App;
using mRemoteNG.Security.SymmetricEncryption;

View File

@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using mRemoteNG.App;

View File

@@ -1,6 +1,5 @@
using System;
using System.ComponentModel;
using System.Drawing;
using mRemoteNG.Security;
namespace mRemoteNG.UI.Forms.OptionsPages

View File

@@ -1,5 +1,4 @@
using System;
using System.Drawing;
using mRemoteNG.App;
using mRemoteNG.Config.Connections;
using mRemoteNG.Config.Connections.Multiuser;

View File

@@ -1,5 +1,4 @@
using System;
using System.Drawing;
namespace mRemoteNG.UI.Forms.OptionsPages
{

View File

@@ -1,5 +1,3 @@
using System.Drawing;
namespace mRemoteNG.UI.Forms.OptionsPages
{
public sealed partial class TabsPanelsPage

View File

@@ -32,7 +32,10 @@ namespace mRemoteNG.UI.Forms
FontOverrider.FontOverride(this);
AddOptionsPagesToListView();
SetInitiallyActivatedPage();
ApplyLanguage();
// ApplyLanguage();
// Handle the main page here and the individual pages in
// AddOptionsPagesToListView() -- one less foreach loop....
Text = Language.strOptionsPageTitle;
ApplyTheme();
Themes.ThemeManager.getInstance().ThemeChanged += ApplyTheme;
lstOptionPages.SelectedIndexChanged += LstOptionPages_SelectedIndexChanged;
@@ -46,6 +49,7 @@ namespace mRemoteNG.UI.Forms
ForeColor = Themes.ThemeManager.getInstance().ActiveTheme.ExtendedPalette.getColor("Dialog_Foreground");
}
#if false
private void ApplyLanguage()
{
Text = Language.strOptionsPageTitle;
@@ -54,7 +58,7 @@ namespace mRemoteNG.UI.Forms
optionPage.ApplyLanguage();
}
}
#endif
private void CompileListOfOptionsPages()
{
_pages = new Dictionary<string, OptionsPage>
@@ -80,6 +84,7 @@ namespace mRemoteNG.UI.Forms
foreach (var page in _pages.Select(keyValuePair => keyValuePair.Value))
{
page.ApplyLanguage();
page.LoadSettings();
lstOptionPages.AddObject(page);
}