Ejemplo n.º 1
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            FormGlobalFormElementChoose formGlobalFormElementChoose = new FormGlobalFormElementChoose();

            formGlobalFormElementChoose.AllowFormElementControlType       = ReturnDataToCallerFormDev.AllowTargetFormElementControlType;
            formGlobalFormElementChoose.AllowSelectFormElementControlType = ReturnDataToCallerFormDev.AllowTargetFormElementControlType;
            formGlobalFormElementChoose.InitFormElementTree();
            if (formGlobalFormElementChoose.ShowDialog() == DialogResult.OK)
            {
                this.txtFormElementCode.Text = formGlobalFormElementChoose.FormElementCode;
            }
        }
 private void btnBrowse_Click(object sender, EventArgs e)
 {
     if (formGlobalFormElementChoose == null || formGlobalFormElementChoose.IsDisposed)
     {
         formGlobalFormElementChoose = new FormGlobalFormElementChoose();
         formGlobalFormElementChoose.AllowFormElementControlType.Add(typeof(UIElementDataListTextBoxColumnEntity));
         formGlobalFormElementChoose.AllowSelectFormElementControlType.Add(typeof(UIElementDataListTextBoxColumnEntity));
         formGlobalFormElementChoose.InitFormElementTree();
     }
     if (formGlobalFormElementChoose.ShowDialog() == DialogResult.OK)
     {
         this.txtDataColumn.Text = formGlobalFormElementChoose.FormElementCode;
     }
 }
Ejemplo n.º 3
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            if (_formGlobalFormElementChoose == null || _formGlobalFormElementChoose.IsDisposed)
            {
                _formGlobalFormElementChoose = new FormGlobalFormElementChoose();
                _formGlobalFormElementChoose.InitFormElementTree();
            }

            if (_formGlobalFormElementChoose.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            this.txtFormElement.Text = _formGlobalFormElementChoose.FormElementFullCode;

            //this.formElementControlType = FormElementEntityDevTypes.Instance.GetProvideAttribute(formGlobalFormElementChoose.SelectedFormElement);

            //根据选择的窗体元素,取可用的对象事件
            ICallEntityMethodSupport formElementEntityDev =
                _formGlobalFormElementChoose.SelectedFormElement as ICallEntityMethodSupport;

            InitAvailabilityMethod(formElementEntityDev, CallUIElementMethodEvent.EnumCallUIElementMethodTargetForm.Caller);
        }