Files
mRemoteNG/mRemoteV1/UI/UI.Window.Base.vb
Riley McArdle e82a9c5228 Fix issue MR-225 - Tabs do not open in a panel until multiple panels are displayed.
Fix issue MR-321 - New connection panel doesn't get panel header if its the only one or is moved
Added option to always show panel tabs
2013-02-19 15:36:30 -06:00

48 lines
1.4 KiB
VB.net

Imports WeifenLuo.WinFormsUI.Docking
Namespace UI
Namespace Window
Public Class Base
Inherits DockContent
#Region "Public Properties"
Private _WindowType As UI.Window.Type
Public Property WindowType() As UI.Window.Type
Get
Return Me._WindowType
End Get
Set(ByVal value As UI.Window.Type)
Me._WindowType = value
End Set
End Property
Private _DockPnl As DockContent
Public Property DockPnl() As DockContent
Get
Return Me._DockPnl
End Get
Set(ByVal value As DockContent)
Me._DockPnl = value
End Set
End Property
#End Region
#Region "Public Methods"
Public Sub SetFormText(ByVal Text As String)
Me.Text = Text
Me.TabText = Text
End Sub
#End Region
#Region "Private Methods"
Private Sub Base_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
frmMain.ShowHidePanelTabs()
End Sub
Private Sub Base_FormClosed(sender As System.Object, e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed
frmMain.ShowHidePanelTabs(Me)
End Sub
#End Region
End Class
End Namespace
End Namespace