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); }
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); }
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); }