Exemple #1
0
        private void UITestConfigUseCurrentParamConfigCheck_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox cb = (CheckBox)sender;

            if (activeTestConfiguration.IsRunning)
            {
                return;
            }

            ClearObservableParameterList();

            if (cb.Checked)
            {
                activeTestConfiguration.setParameterControlTemplate(Program.app.autoParamControlTemplate);
                SetObservableParameterList(Program.app.autoParamControlTemplate.GetCollection());
            }
            else
            {
                ParameterControlTemplate selectedItem = GetSelectedParameterControlTemplate();
                activeTestConfiguration.ParameterControlTemplate = null;

                if (selectedItem != null)
                {
                    activeTestConfiguration.setParameterControlTemplate(selectedItem);
                    SetObservableParameterList(selectedItem.GetCollection());
                }
            }
        }
Exemple #2
0
        private void UITestConfigParameterTemplateSelect_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (activeTestConfiguration.IsRunning)
            {
                MessageBox.Show("Cannot modify control parameters when test is running");
                return;
            }

            ParameterControlTemplate selectedItem = GetSelectedParameterControlTemplate();

            activeTestConfiguration.ParameterControlTemplate = null;

            if (selectedItem != null)
            {
                activeTestConfiguration.setParameterControlTemplate(selectedItem);
                SetObservableParameterList(selectedItem.GetCollection());
            }
        }