Example #1
0
        /// <summary>
        /// 出现动作参数对话框,收集输入信息
        /// </summary>
        /// <returns>true: 确定; false: 放弃</returns>
        public bool SetChangeParameters()
        {
            ChangeEntityActionDialog dlg = new ChangeEntityActionDialog();
            MainForm.SetControlFont(dlg, this.Font, false);

            dlg.GetValueTable += new GetValueTableEventHandler(entityEditControl1_GetValueTable);
            if (String.IsNullOrEmpty(this.entityEditControl1.RecPath) == true)
            {
                dlg.RefDbName = "";
            }
            else
            {
                dlg.RefDbName = Global.GetDbName(this.entityEditControl1.RecPath);
            }
            dlg.MainForm = this.MainForm;
            // dlg.StartPosition = FormStartPosition.CenterScreen;

            this.MainForm.AppInfo.LinkFormState(dlg, "quickchangeentityform_changeparamdialog_state");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.OK)
                return true;
            return false;
        }