private void ButtonTestCasesDetailedView_Click(object sender, EventArgs e) { CurrentPanel.Hide(); CurrentPanel = PanelTestCasesDetailedView; CurrentPanel.Show(); CurrentPanel.Refresh(); ComboBoxSelectTestCase.BeginUpdate(); ComboBoxSelectTestCase.DataSource = TestPlan.GetTestCases().ToList(); }
private void ButtonTestCasesDetailedViewRemove_Click(object sender, EventArgs e) { if (ComboBoxSelectTestCase.SelectedItem != null) { TestPlan.RemoveTestCase(ComboBoxSelectTestCase.SelectedIndex); FillDataGridViewTestCases(); ComboBoxSelectTestCase.BeginUpdate(); ComboBoxSelectTestCase.DataSource = TestPlan.GetTestCases().ToList(); ComboBoxSelectTestCase.EndUpdate(); ComboBoxSelectTestCase.Refresh(); CurrentPanel.Refresh(); ButtonColorAnimation(ButtonTestCasesDetailedViewRemove, Color.PaleVioletRed); } }