Skip to content

Commit

Permalink
Added better wait cursor feedback to attribute tree load
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchiecarroll committed Dec 7, 2021
1 parent 48beb94 commit 32e410b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
'
'******************************************************************************************************

Imports GSF.Units.EE
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTree
Imports Infragistics.Win.UltraWinMaskedEdit
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down

0 comments on commit 32e410b

Please sign in to comment.