Files
mRemoteNG/mRemoteV1/UI/Window/BaseWindow.cs
Camilo Alvarez 991d1d82b8 Misc fixes
- 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
2017-12-26 12:15:11 -05:00

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
}
}