/// <summary>
 /// Initializes a new instance of the <see cref="TestCasesInitialViewModel"/> class.
 /// </summary>
 /// <param name="viewModel">The old view model.</param>
 public SharedStepsInitialViewModel(SharedStepsInitialViewModel viewModel) : this()
 {
     this.InitialViewFiltersSharedSteps = viewModel.InitialViewFiltersSharedSteps;
     this.InitialViewFiltersTestCases   = viewModel.InitialViewFiltersTestCases;
     this.ObservableTestCases           = viewModel.ObservableTestCases;
     this.SelectedSharedStep            = viewModel.SelectedSharedStep;
     this.TestCasesCount = this.ObservableTestCases.Count.ToString();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TestCasesInitialViewModel"/> class.
 /// </summary>
 /// <param name="viewModel">The old view model.</param>
 public SharedStepsInitialViewModel(SharedStepsInitialViewModel viewModel) : this()
 {
     this.InitialViewFiltersSharedSteps = viewModel.InitialViewFiltersSharedSteps;
     this.InitialViewFiltersTestCases = viewModel.InitialViewFiltersTestCases;
     this.ObservableTestCases = viewModel.ObservableTestCases;
     this.SelectedSharedStep = viewModel.SelectedSharedStep;
     this.TestCasesCount = this.ObservableTestCases.Count.ToString();
 }
 /// <summary>
 /// Handles the Loaded event of the TestCaseInitialView control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void TestCaseInitialView_Loaded(object sender, RoutedEventArgs e)
 {
     if (isInitialized)
     {
         return;
     }
     this.ShowProgressBar();
     this.InitializeFastKeys();
     Task t = Task.Factory.StartNew(() =>
     {
         if (this.SharedStepsInitialViewModel != null)
         {
             this.SharedStepsInitialViewModel = new TestCaseManagerCore.ViewModels.SharedStepsInitialViewModel(this.SharedStepsInitialViewModel);
         }
         else
         {
             this.SharedStepsInitialViewModel = new TestCaseManagerCore.ViewModels.SharedStepsInitialViewModel();
         }
     });
     t.ContinueWith(antecedent =>
     {
         this.SharedStepsInitialViewModel.FilterSharedSteps();
         this.DataContext = this.SharedStepsInitialViewModel;
         this.UpdateButtonsStatus();             
         this.HideProgressBar();
         this.tbTitleFilter.Focus();
         isInitialized = true;
     }, TaskScheduler.FromCurrentSynchronizationContext());
 }