Esempio n. 1
0
 public KnobProperty(KnobControl _ctrl)
 {
     InitializeComponent();
     _beforeCtrl       = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl      = _ctrl;
     windowCloseButton = false;
 }
Esempio n. 2
0
        private void OpenProperty(Object sender, EventArgs e)
        {
            this.colUserControl = base.Component as KnobControl;
            var parentControl = (KnobControl)Control;
            var oldTabs       = parentControl.Controls;
            var propertyForm  = new KnobProperty((KnobControl)Control);

            propertyForm.ShowDialog();
            //每一次都要改变
            //只改变BackColor进行Designer.cs的强制更新
            GetPropertyByName("BackColor").SetValue(colUserControl, parentControl.BackColor);
        }