public void Move(BarCode a, MouseEventArgs e) { if (BarCodeMove != null) { BarCodeMove(a, e); } }
public BarCode Clone() { BarCode clone = new BarCode(this._container, this.Type, this.BarCodeInfo, this.BarCodeWidth, this.BarCodeHeight); clone.originBarCode = this; clone.BarCodeData = new BarCodeComponent(); clone.BarCodeData.BarCodeInfo = this.BarCodeData.BarCodeInfo; clone.BarCodeData.BarCodeType = this.BarCodeData.BarCodeType; clone.BarCodeData.BarCodeWidth = this.BarCodeData.BarCodeWidth; clone.BarCodeData.BarCodeHeight = this.BarCodeData.BarCodeHeight; clone.setUIValueByBarCodeData(clone.BarCodeData); // clone.CenterPoint = this.CenterPoint; clone.CenterPoint = this.CenterPoint; //clone.ZIndex = this.ZIndex; //_container.AddActivity(clone); return(clone); }