public StripChartProperty(StripChart _ctrl)
 {
     InitializeComponent();
     _beforeCtrl       = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl      = _ctrl;
     windowCloseButton = false;
 }
 public EasyChartXPropertyForm(EasyChartX _ctrl)
 {
     InitializeComponent();
     _beforeCtrl       = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl      = _ctrl;
     windowCloseButton = false;
 }
예제 #3
0
        public static Control CloneCtrl(Control ctrl)
        {
            CBFormCtrl cbCtrl  = new CBFormCtrl(ctrl);
            Control    newCtrl = ControlFactory.CreateControl(cbCtrl.CtrlName, cbCtrl.PartialName);

            ControlFactory.SetControlProperties(newCtrl, cbCtrl.PropertyList);

            return(newCtrl);
        }
예제 #4
0
        public static Control GetCtrlFromClipBoard()
        {
            Control ctrl = new Control();

            IDataObject ido = Clipboard.GetDataObject();

            if (ido.GetDataPresent(CBFormCtrl.Format.Name))
            {
                CBFormCtrl cbCtrl = ido.GetData(CBFormCtrl.Format.Name) as CBFormCtrl;

                ctrl = ControlFactory.CreateControl(cbCtrl.CtrlName, cbCtrl.PartialName);
                ControlFactory.SetControlProperties(ctrl, cbCtrl.PropertyList);
            }
            return(ctrl);
        }
예제 #5
0
 public SlideProperty(Slide _ctrl)
 {
     InitializeComponent();
     _beforeCtrl  = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl = _ctrl;
 }
 public ThermometerPorperty(Thermometer _ctrl)
 {
     InitializeComponent();
     _beforeCtrl  = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl = _ctrl;
 }
 public EasyButtonProperty(EasyButton _ctrl)
 {
     InitializeComponent();
     _beforeCtrl  = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl = _ctrl;
 }