Example #1
0
        private void ClickModify(object arg1, EventArgs arg2)
        {
            this.isModify = true;
            FormStepNew form = new FormStepNew();

            form.Entity = this.myTestStepGridView.FindFirstSelect <Step>();
            form.ShowDialog();
            if (this.Entity == null)
            {
                logger.Info("测试项配置新增和修改界面,测试配置修改功能,没有选中一条信息");
                return;
            }
            this.Sort();
            this.myTestStepGridView.LoadData(this.stepList, base.ignoreFields);
        }
Example #2
0
        private void ClickAdd(object arg1, EventArgs arg2)
        {
            FormStepNew form = new FormStepNew();

            if (form.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                if (form.Entity != null)
                {
                    this.stepList.Add(form.Entity);
                }
            }
            this.Sort();

            this.myTestStepGridView.LoadData(this.stepList, base.ignoreFields);
        }