private void OnDispatcherShutdownStarted(object sender, EventArgs e) { _progressThread.Dispose(); _progressThread = null; PatcherService.UnregisterControl(this); }
private void OnLoaded(object sender, RoutedEventArgs e) { _progressThread = new TimeoutAction(DrawProgressBar, 25); PatcherService.RegisterControl(this); }