Example #1
0
        private void ButtonTestCasesDetailedView_Click(object sender, EventArgs e)
        {
            CurrentPanel.Hide();
            CurrentPanel = PanelTestCasesDetailedView;
            CurrentPanel.Show();
            CurrentPanel.Refresh();

            ComboBoxSelectTestCase.BeginUpdate();
            ComboBoxSelectTestCase.DataSource = TestPlan.GetTestCases().ToList();
        }
Example #2
0
        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);
            }
        }