public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     FragmentManager fm = new FragmentManager(e.Fragment);
     string currentExecutionResultId = fm.Fragments["executionResultRunId"];
     ExecutionResultRun executionResultRun = ATACore.Managers.ExecutionResultRunManager.GetByExecutionResultRun(ATACore.Managers.ContextManager.Context, currentExecutionResultId);
     List<TestResultRun> testResultRuns = ATACore.Managers.TestResultRunManager.GetRunsByExecutionResultRun(ATACore.Managers.ContextManager.Context, currentExecutionResultId);
     CurrentExecutionResultsViewModel = new AutomationTestAssistantDesktopApp.CurrentExecutionResultsViewModel(executionResultRun, testResultRuns);
     ATACore.Managers.ContextManager.Dispose();
     mainGrid.DataContext = CurrentExecutionResultsViewModel;
     executionResultRunGrid.DataContext = CurrentExecutionResultsViewModel.ExecutionResultRunViewModel;
     testResultRunDataGrid.ItemsSource = CurrentExecutionResultsViewModel.ObservableTestResultRunViewModels;
 }
        public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
        {
            FragmentManager      fm = new FragmentManager(e.Fragment);
            string               currentExecutionResultId = fm.Fragments["executionResultRunId"];
            ExecutionResultRun   executionResultRun       = ATACore.Managers.ExecutionResultRunManager.GetByExecutionResultRun(ATACore.Managers.ContextManager.Context, currentExecutionResultId);
            List <TestResultRun> testResultRuns           = ATACore.Managers.TestResultRunManager.GetRunsByExecutionResultRun(ATACore.Managers.ContextManager.Context, currentExecutionResultId);

            CurrentExecutionResultsViewModel = new AutomationTestAssistantDesktopApp.CurrentExecutionResultsViewModel(executionResultRun, testResultRuns);
            ATACore.Managers.ContextManager.Dispose();
            mainGrid.DataContext = CurrentExecutionResultsViewModel;
            executionResultRunGrid.DataContext = CurrentExecutionResultsViewModel.ExecutionResultRunViewModel;
            testResultRunDataGrid.ItemsSource  = CurrentExecutionResultsViewModel.ObservableTestResultRunViewModels;
        }