mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-24 10:28:45 +08:00
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
48 lines
1.4 KiB
VB.net
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 |