public void OnNavigatedFrom(NavigationEventArgs e) { Model.Unload(); _taskbarProgress?.Dispose(); _timer?.Stop(); }
private void WaitingDialog_Closing(object sender, CancelEventArgs e) { if (!_closeWithoutCancellation && _cancellationTokenSource != null) { _cancellationTokenSource.Cancel(); IsCancelled = true; } if (_taskbarProgress != null) { _taskbarProgress.Dispose(); _taskbarProgress = null; } }