public void Copy(MeasureDefect measureDefect) { this.DefectAlgorithm.Copy(measureDefect.DefectAlgorithm); this.DefectName = measureDefect.DefectName; this.HRectList.Clear(); foreach (var item in measureDefect.HRectList) { HRect hRect = new HRect(); hRect.Copy(item); this.HRectList.Add(hRect); } this.HCircleList.Clear(); foreach (var item in measureDefect.HCircleList) { HCircle hCircle = new HCircle(); hCircle.Copy(item); this.HCircleList.Add(hCircle); } this.HPolygonList.Clear(); foreach (var item in measureDefect.HPolygonList) { HPolygon hPolygon = new HPolygon(); hPolygon.Copy(item); this.HPolygonList.Add(hPolygon); } this.Id = measureDefect.Id; }
public void Copy(HCircle hCircle) { this.Column = hCircle.Column; this.Id = hCircle.Id; this.IsSelected = hCircle.IsSelected; this.IsVisable = hCircle.IsVisable; this.Radius = hCircle.Radius; this.RectName = hCircle.RectName; this.Row = hCircle.Row; this.Type = hCircle.Type; this.Circle_xld = hCircle.Circle_xld; }