Add expanded state
This commit is contained in:
parent
d29154bb7f
commit
812d087ada
@ -33,6 +33,12 @@ Public Class frmMonitor
|
|||||||
Concat(HtmlViewColumns).
|
Concat(HtmlViewColumns).
|
||||||
ToList
|
ToList
|
||||||
|
|
||||||
|
Private Enum TristateBoolean
|
||||||
|
[False]
|
||||||
|
[True]
|
||||||
|
Indeterminate
|
||||||
|
End Enum
|
||||||
|
|
||||||
Private ReadOnly DisplayColumns As New List(Of String) From {"COLUMN1", "COLUMN2", "COLUMN3", "ADDED_WHEN", "STATE", "ICON"}
|
Private ReadOnly DisplayColumns As New List(Of String) From {"COLUMN1", "COLUMN2", "COLUMN3", "ADDED_WHEN", "STATE", "ICON"}
|
||||||
|
|
||||||
Private SQLResultGrids As List(Of GridControl)
|
Private SQLResultGrids As List(Of GridControl)
|
||||||
@ -233,6 +239,15 @@ Public Class frmMonitor
|
|||||||
End Function)
|
End Function)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
For Each oNode As TreeListNode In TreeListResults.Nodes
|
||||||
|
Try
|
||||||
|
Dim oExpanded As TristateBoolean = Utils.NotNull(oNode.Item("EXPANDED"), TristateBoolean.Indeterminate)
|
||||||
|
ExpandCollapseNode(oNode, oExpanded)
|
||||||
|
Catch ex As Exception
|
||||||
|
Logger.Error(ex)
|
||||||
|
End Try
|
||||||
|
Next
|
||||||
|
|
||||||
SetResultCount(TreeListResults.AllNodesCount)
|
SetResultCount(TreeListResults.AllNodesCount)
|
||||||
|
|
||||||
TreeListResults.Focus()
|
TreeListResults.Focus()
|
||||||
@ -510,6 +525,17 @@ Public Class frmMonitor
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ExpandCollapseNode(pNode As TreeListNode, pState As TristateBoolean)
|
||||||
|
Select Case pState
|
||||||
|
Case TristateBoolean.False
|
||||||
|
pNode.Collapse()
|
||||||
|
Case TristateBoolean.True
|
||||||
|
pNode.Expand()
|
||||||
|
Case Else
|
||||||
|
'noop
|
||||||
|
End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub FillResultHtmlViewer(RichEditControl As RichEditControl, Html As String, Title As String)
|
Private Sub FillResultHtmlViewer(RichEditControl As RichEditControl, Html As String, Title As String)
|
||||||
RichEditControl.HtmlText = Html
|
RichEditControl.HtmlText = Html
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user