Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     mainController = new MainController(this);
     testCaseView   = mainController.getTestCaseView();
     this.refreshContent(testCaseView);
 }
        public TestCaseView getTestCaseView(TestCase testCase)
        {
            if (testCaseView == null)
            {
                testCaseView = new TestCaseView(mainWindow);
            }
            foreach (var sistema in testCaseView.sistemas)
            {
                if (sistema.Id == testCase.SistemaPai.Id)
                {
                    testCaseView.selectedSistema = sistema;
                    break;
                }
            }

            foreach (TestCase tc in testCaseView.ctfBox.Items)
            {
                if (tc.Id == testCase.Id)
                {
                    testCaseView.selectedCase        = tc;
                    testCaseView.ctfBox.SelectedItem = tc;
                }
            }

            testCaseView.refresh();
            return(testCaseView);
        }
 public TestCaseView getTestCaseView()
 {
     if (testCaseView == null)
     {
         testCaseView = new TestCaseView(mainWindow);
     }
     testCaseView.refresh();
     return(testCaseView);
 }
Beispiel #4
0
 private void OpenTestCaseEdit(object sender, RoutedEventArgs e)
 {
     testCaseView = mainController.getTestCaseView();
     this.refreshContent(testCaseView);
 }
Beispiel #5
0
 public void OpenTestCaseViewWithSelectedCase(TestCase testCase)
 {
     testCaseView = mainController.getTestCaseView(testCase);
     this.refreshContent(testCaseView);
 }
Beispiel #6
0
 public async void OpenDetalhesPasso(TestCaseView parentWindow, PassoDoTeste passo)
 {
     await this.ShowChildWindowAsync(new DetalhesPassoChildWindow(this, parentWindow, passo) { IsModal = true });
 }
Beispiel #7
0
 public async void OpenAcaoEditChildWindow(TestCaseView parentWindow, AcaoDyn acao)
 {
     await this.ShowChildWindowAsync(new EditAcaoChildWindow(this, parentWindow, acao) { IsModal = true });
 }
Beispiel #8
0
 public async void OpenAddAcaoChildWindow(TestCaseView parentWindow, Screen selectedTela, Sistema selectedSistema)
 {
     await this.ShowChildWindowAsync(new AddAcaoChildWindow(this, parentWindow, selectedTela, selectedSistema) { IsModal = true });
 }