@@ -347,7 +347,7 @@ private void ShowOverlayError(Exception exception)
347347
348348 private void Core_ProxyAdded ( Core sender , IEnumerable < ICOMObject > ownerPath , ICOMObject comObject )
349349 {
350- Action method = delegate
350+ void ProxyAddedAction ( )
351351 {
352352 try
353353 {
@@ -381,13 +381,14 @@ private void Core_ProxyAdded(Core sender, IEnumerable<ICOMObject> ownerPath, ICO
381381 {
382382 ShowOverlayError ( exception ) ;
383383 }
384- } ;
385- TryBeginInvoke ( method ) ;
384+ }
385+
386+ TryBeginInvoke ( ProxyAddedAction ) ;
386387 }
387388
388389 private void Core_ProxyRemoved ( Core sender , IEnumerable < ICOMObject > ownerPath , ICOMObject comObject )
389390 {
390- Action method = delegate
391+ void ProxyRemoveAction ( )
391392 {
392393 try
393394 {
@@ -438,13 +439,14 @@ private void Core_ProxyRemoved(Core sender, IEnumerable<ICOMObject> ownerPath, I
438439 {
439440 ShowOverlayError ( exception ) ;
440441 }
441- } ;
442- TryBeginInvoke ( method ) ;
442+ }
443+
444+ TryBeginInvoke ( ProxyRemoveAction ) ;
443445 }
444446
445447 private void Core_ProxyCleared ( Core sender )
446448 {
447- Action method = delegate
449+ void ClearNodes ( )
448450 {
449451 try
450452 {
@@ -455,8 +457,9 @@ private void Core_ProxyCleared(Core sender)
455457 {
456458 ShowOverlayError ( exception ) ;
457459 }
458- } ;
459- TryBeginInvoke ( method ) ;
460+ }
461+
462+ TryBeginInvoke ( ClearNodes ) ;
460463 }
461464
462465 private void HighlightTimer_Tick ( object sender , EventArgs e )
0 commit comments