Ejemplo n.º 1
0
        private void ViewButton_Click(object sender, RoutedEventArgs e)
        {
            ExecutionResultRunViewModel currentExecutionResultViewModel = ((FrameworkElement)sender).DataContext as ExecutionResultRunViewModel;
            ModernWindow mw = Window.GetWindow(this) as ModernWindow;
            Uri          u1 = new Uri(String.Format("/ExecutionResultsView.xaml#executionResultRunId={0}", currentExecutionResultViewModel.ExecutionResultRunId), UriKind.Relative);

            mw.ContentSource = u1;
        }
Ejemplo n.º 2
0
 public CurrentExecutionResultsViewModel(ExecutionResultRun executionResultRun, List <TestResultRun> testResultRunsList)
 {
     testResultRunViewModels     = new ObservableCollection <TestResultRunViewModel>();
     ExecutionResultRunViewModel = new ExecutionResultRunViewModel(executionResultRun);
     testResultRunsList.ForEach(r => testResultRunViewModels.Add(new TestResultRunViewModel(r)));
 }
 public CurrentExecutionResultsViewModel(ExecutionResultRun executionResultRun, List<TestResultRun> testResultRunsList)
 {
     testResultRunViewModels = new ObservableCollection<TestResultRunViewModel>();
     ExecutionResultRunViewModel = new ExecutionResultRunViewModel(executionResultRun);
     testResultRunsList.ForEach(r => testResultRunViewModels.Add(new TestResultRunViewModel(r)));
 }