mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
minor clean up
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.App;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.App;
|
||||
using mRemoteNG.Tools;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using mRemoteNG.Config;
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using mRemoteNG.App;
|
||||
using mRemoteNG.Security.SymmetricEncryption;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.App;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using mRemoteNG.Security;
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using mRemoteNG.App;
|
||||
using mRemoteNG.Config.Connections;
|
||||
using mRemoteNG.Config.Connections.Multiuser;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
{
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System.Drawing;
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
{
|
||||
public sealed partial class TabsPanelsPage
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user