private void startButton_Click(object sender, RoutedEventArgs e)
 {
     viewModel = vmlocator.GetViewModel(localPivotName);
     // startButton = sender as Button;
     viewModel.Reset();
     this.DataContext = viewModel.GetTask();
 }
 private void stopTraining()
 {
     this.viewModel = vmlocator.GetViewModel("StubTrainingViewModel");
     this.DataContext = viewModel.GetTask();
 }