示例#1
0
        public void ShowRecorder(object sender, EventArgs e, ICommandControls commandControls)
        {
            //get command reference
            //create recorder
            IfrmAdvancedUIElementRecorder newElementRecorder = commandControls.CreateAdvancedUIElementRecorderForm();

            newElementRecorder.WindowName             = RenderedControls[3].Text;
            newElementRecorder.SearchParameters       = v_UIASearchParameters;
            newElementRecorder.chkStopOnClick.Checked = true;

            //show form
            ((Form)newElementRecorder).ShowDialog();

            //window name combobox
            RenderedControls[3].Text = newElementRecorder.WindowName;

            v_UIASearchParameters.Rows.Clear();

            foreach (DataRow rw in newElementRecorder.SearchParameters.Rows)
            {
                v_UIASearchParameters.ImportRow(rw);
            }

            _searchParametersGridViewHelper.DataSource = v_UIASearchParameters;
            _searchParametersGridViewHelper.Refresh();
        }