Пример #1
0
 private void OnDispatcherShutdownStarted(object sender, EventArgs e)
 {
     _progressThread.Dispose();
     _progressThread = null;
     PatcherService.UnregisterControl(this);
 }
Пример #2
0
 private void OnLoaded(object sender, RoutedEventArgs e)
 {
     _progressThread = new TimeoutAction(DrawProgressBar, 25);
     PatcherService.RegisterControl(this);
 }