Beispiel #1
0
        public override DrawObject Clone(int n)
        {
            SC drawSC = new SC();

            drawSC.Rectangle   = this.Rectangle;
            drawSC.tagIDBase   = this.tagIDBase;
            drawSC.DeviceIP    = this.DeviceIP;
            drawSC.logicIDTail = LogicIDAdd(logicIDTail, n);
            FillDrawObjectFields(drawSC);
            return(drawSC);
        }
Beispiel #2
0
        public override DrawObject Clone(int n)
        {
            SC drawSC = new SC();

            drawSC.Rectangle    = this.Rectangle;
            drawSC._tagIDBase   = this._tagIDBase;             //绑定的label
            drawSC.DeviceIP     = this.DeviceIP;
            drawSC._logicIDTail = LogicIDAdd(_logicIDTail, n); //解决设备ID相同问题
            FillDrawObjectFields(drawSC);
            return(drawSC);
        }
Beispiel #3
0
        public override DrawObject Clone()
        {
            SC drawSC = new SC();

            objIdInc--;
            drawSC.Rectangle = this.Rectangle;

            drawSC.tagIDBase   = this.tagIDBase;
            drawSC.logicIDTail = logicIDTail;
            drawSC.DeviceIP    = this.DeviceIP;
            FillDrawObjectFields(drawSC);
            return(drawSC);
        }