Beispiel #1
0
        private void Fields_Edit_Click(object sender, EventArgs e)
        {
            Control           ctl = this.propertyGrid1.SelectedObjects[0] as Control;
            FrmPropertyDesign frmPropertyDesign = new FrmPropertyDesign();

            frmPropertyDesign.m_control = ctl;
            frmPropertyDesign.ShowDialog();
            D1TextBoxProperty pro = (frmPropertyDesign.m_return as D1TextBoxProperty);

            if (pro == null)
            {
                return;
            }
            if (ctl.Name != pro.Name && ControlMap.ContainsKey(pro.Name))
            {
                MessageBox.Show("字段名重复,请检查!");
                return;
            }



            Console.WriteLine(pro.Name + pro.LabelName);
            this.propertyGrid1.Refresh();
        }
Beispiel #2
0
        private void Fields_Edit_Click(object sender, EventArgs e)
        {
            Control ctl = this.propertyGrid1.SelectedObjects[0] as Control;
            FrmPropertyDesign frmPropertyDesign = new FrmPropertyDesign();
            frmPropertyDesign.m_control = ctl;
            frmPropertyDesign.ShowDialog();
            D1TextBoxProperty pro = (frmPropertyDesign.m_return as D1TextBoxProperty);
            if (pro==null) return;
            if (ctl.Name != pro.Name && ControlMap.ContainsKey(pro.Name))
            {
                MessageBox.Show("字段名重复,请检查!");
                return;
            }

            Console.WriteLine(pro.Name + pro.LabelName);
            this.propertyGrid1.Refresh();
        }