mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-24 10:28:45 +08:00
- Clear redundant settings form app.config - Deleted DesignModeTest as ThemeManager can now be used in design time without adjustements, removed usage from all custo elements - Instance _themeManager in NGNumericUpDown at object creation to avoid null reference errors - Errorsform instancing is now defaulted to DockBottomAutoHide in frmMain -Fix missing panel at startup by adding a blank panel, temporary solution as magic library is beign phased out
57 lines
1.3 KiB
C#
57 lines
1.3 KiB
C#
using mRemoteNG.Themes;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
|
|
|
|
|
namespace mRemoteNG.UI.Window
|
|
{
|
|
public class BaseWindow : DockContent
|
|
{
|
|
#region Private Variables
|
|
//private WindowType _WindowType;
|
|
//private DockContent _DockPnl;
|
|
private ThemeManager _themeManager;
|
|
#endregion
|
|
|
|
#region Public Properties
|
|
|
|
protected WindowType WindowType { get; set; }
|
|
|
|
protected DockContent DockPnl { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Public Methods
|
|
public void SetFormText(string t)
|
|
{
|
|
Text = t;
|
|
TabText = t;
|
|
}
|
|
#endregion
|
|
|
|
internal new void ApplyTheme()
|
|
{
|
|
_themeManager = ThemeManager.getInstance();
|
|
if (!_themeManager.ThemingActive) return;
|
|
BackColor = _themeManager.ActiveTheme.ExtendedPalette.getColor("Dialog_Background");
|
|
ForeColor = _themeManager.ActiveTheme.ExtendedPalette.getColor("Dialog_Foreground");
|
|
}
|
|
|
|
|
|
#region Private Methods
|
|
/*
|
|
private void Base_Load(object sender, EventArgs e)
|
|
{
|
|
FrmMain.Default.ShowHidePanelTabs();
|
|
}
|
|
*/
|
|
|
|
/*
|
|
private void Base_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
|
|
{
|
|
FrmMain.Default.ShowHidePanelTabs(this);
|
|
}
|
|
*/
|
|
#endregion
|
|
}
|
|
} |