private void Spy_OnStoppedSafe(SpyStoppedArgs args) { Active = false; CanStart = true; CanAttach = true; CanPause = false; CanStop = false; Path = null; if (args.StopType == SpyStopType.Closed) { _Client = null; } else if (args.StopType == SpyStopType.Error) { App.Window.ShowNotification(NotificationType.Error, args.Error); } }
private void Spy_OnStoppedSafe( SpyStoppedArgs args ) { Active = false; CanStart = true; CanAttach = true; CanPause = false; CanStop = false; Path = null; if ( args.StopType == SpyStopType.Closed ) { _Client = null; } else if ( args.StopType == SpyStopType.Error ) { App.Window.ShowNotification( NotificationType.Error, args.Error ); } }
private void Spy_OnStopped( SpyStoppedArgs args ) { App.Current.Dispatcher.BeginInvoke( new Action<SpyStoppedArgs>( Spy_OnStoppedSafe ), args ); }
private void Spy_OnStopped(SpyStoppedArgs args) { App.Current.Dispatcher.BeginInvoke(new Action <SpyStoppedArgs>(Spy_OnStoppedSafe), args); }