File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
UIComponents/Trees/Explorer Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,25 @@ namespace RevitDBExplorer.Domain
88{
99 internal class EventListener
1010 {
11- public static event EventHandler < SelectionChangedEventArgs > SelectionChanged ;
11+ public static event Action < object > SelectionChanged ;
1212
1313
1414
1515 public static void Register ( UIControlledApplication application )
1616 {
17+ #if R2023_MIN
1718 application . SelectionChanged += Application_SelectionChanged ;
19+ #endif
1820 }
1921
2022
21-
2223
2324
24- private static void Application_SelectionChanged ( object sender , SelectionChangedEventArgs e )
25+ #if R2023_MIN
26+ private static void Application_SelectionChanged ( object sender , SelectionChangedEventArgs selectionChangedEventArgs )
2527 {
26- SelectionChanged ? . Invoke ( sender , e ) ;
28+ SelectionChanged ? . Invoke ( sender ) ;
2729 }
30+ #endif
2831 }
2932}
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public void UnbindEvents()
186186 }
187187
188188
189- private void EventListener_SelectionChanged ( object sender , Autodesk . Revit . UI . Events . SelectionChangedEventArgs e )
189+ private void EventListener_SelectionChanged ( object sender )
190190 {
191191 SynchronizeSelectionWithRevit ( ) ;
192192 }
You can’t perform that action at this time.
0 commit comments