Improve PanelManager

This commit is contained in:
Jonathan Jenne
2019-03-11 16:32:51 +01:00
parent 896426da3b
commit 53f0632f4e
3 changed files with 55 additions and 18 deletions

View File

@@ -1,4 +1,8 @@
Public Class BasePanel
Public Property Caption As String
Public ReadOnly Property OwnerForm As Integer
Get
Return Parent?.Parent?.Tag
End Get
End Property
End Class

View File

@@ -20,7 +20,9 @@ Public Class DocumentPanel
Private Sub GridViewMain_RowClick(sender As Object, e As RowClickEventArgs) Handles GridViewMain.RowClick
If e.Button = MouseButtons.Left And e.Clicks = 2 Then
MsgBox("Open Preview")
MsgBox($"Open Preview for form {OwnerForm}")
'TODO: Open Preview Panel for OwnerForm
End If
End Sub
End Class