mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 03:58:45 +08:00
55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using mRemoteNG.UI.Forms;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
|
|
|
|
namespace mRemoteNG.UI.Window
|
|
{
|
|
public class BaseWindow : DockContent
|
|
{
|
|
#region Private Variables
|
|
private WindowType _WindowType;
|
|
private DockContent _DockPnl;
|
|
#endregion
|
|
|
|
#region Constructors
|
|
public BaseWindow()
|
|
{
|
|
//InitializeComponent();
|
|
}
|
|
#endregion
|
|
|
|
#region Public Properties
|
|
public WindowType WindowType
|
|
{
|
|
get { return this._WindowType; }
|
|
set { this._WindowType = value; }
|
|
}
|
|
|
|
public DockContent DockPnl
|
|
{
|
|
get { return this._DockPnl; }
|
|
set { this._DockPnl = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region Public Methods
|
|
public void SetFormText(string Text)
|
|
{
|
|
this.Text = Text;
|
|
this.TabText = Text;
|
|
}
|
|
#endregion
|
|
|
|
#region Private Methods
|
|
private void Base_Load(System.Object sender, System.EventArgs e)
|
|
{
|
|
frmMain.Default.ShowHidePanelTabs();
|
|
}
|
|
|
|
private void Base_FormClosed(System.Object sender, System.Windows.Forms.FormClosedEventArgs e)
|
|
{
|
|
frmMain.Default.ShowHidePanelTabs(this);
|
|
}
|
|
#endregion
|
|
}
|
|
} |