From 32e410b5addec1ff569d6161148d037f2bbf9ee8 Mon Sep 17 00:00:00 2001 From: "J. Ritchie Carroll" Date: Mon, 6 Dec 2021 22:57:40 -0600 Subject: [PATCH] Added better wait cursor feedback to attribute tree load --- .../PMUConnectionTester/PMUConnectionTester.vb | 14 +++++++++++++- .../PMUConnectionTester/PMUConnectionTester.vbproj | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vb b/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vb index 626e5ed..171b3de 100755 --- a/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vb +++ b/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vb @@ -29,7 +29,6 @@ ' '****************************************************************************************************** -Imports GSF.Units.EE Imports Infragistics.Win Imports Infragistics.Win.UltraWinTree Imports Infragistics.Win.UltraWinMaskedEdit @@ -56,6 +55,7 @@ Imports GSF.PhasorProtocols Imports GSF.Reflection.AssemblyInfo Imports GSF.Threading Imports GSF.Units +Imports GSF.Units.EE Imports GSF.Windows.Forms #Disable Warning LocalizableElement @@ -2736,6 +2736,18 @@ Public Class PMUConnectionTester End Sub + Private Sub TreeFrameAttributes_BeforeDataNodesCollectionPopulated(sender As Object, e As BeforeDataNodesCollectionPopulatedEventArgs) Handles TreeFrameAttributes.BeforeDataNodesCollectionPopulated + + If e.Nodes.ParentNode Is Nothing Then Cursor = Cursors.WaitCursor + + End Sub + + Private Sub TreeFrameAttributes_AfterDataNodesCollectionPopulated(sender As Object, e As AfterDataNodesCollectionPopulatedEventArgs) Handles TreeFrameAttributes.AfterDataNodesCollectionPopulated + + If e.Nodes.ParentNode Is Nothing Then Cursor = Cursors.Default + + End Sub + Private Sub TreeFrameAttributes_InitializeDataNode(ByVal sender As Object, ByVal e As InitializeDataNodeEventArgs) Handles TreeFrameAttributes.InitializeDataNode ' Initialize data nodes - this event fires every time a node is added to the tree from a data source diff --git a/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vbproj b/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vbproj index c3fcded..33338b3 100755 --- a/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vbproj +++ b/Source/Tools/PMUConnectionTester/PMUConnectionTester/PMUConnectionTester.vbproj @@ -38,6 +38,7 @@ false true + latest true