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); }
private void OpenTestCaseEdit(object sender, RoutedEventArgs e) { testCaseView = mainController.getTestCaseView(); this.refreshContent(testCaseView); }
public void OpenTestCaseViewWithSelectedCase(TestCase testCase) { testCaseView = mainController.getTestCaseView(testCase); this.refreshContent(testCaseView); }
public async void OpenDetalhesPasso(TestCaseView parentWindow, PassoDoTeste passo) { await this.ShowChildWindowAsync(new DetalhesPassoChildWindow(this, parentWindow, passo) { IsModal = true }); }
public async void OpenAcaoEditChildWindow(TestCaseView parentWindow, AcaoDyn acao) { await this.ShowChildWindowAsync(new EditAcaoChildWindow(this, parentWindow, acao) { IsModal = true }); }
public async void OpenAddAcaoChildWindow(TestCaseView parentWindow, Screen selectedTela, Sistema selectedSistema) { await this.ShowChildWindowAsync(new AddAcaoChildWindow(this, parentWindow, selectedTela, selectedSistema) { IsModal = true }); }