public ClassTransformdisplayPoint(ClassTransformPointPair withMe, Int32 decimalesCoord, Int32 decimalesRiwi) { if (withMe == null) { throw new ArgumentNullException("withme must not null!"); } pointpair = withMe; this.decimalesCoord = decimalesCoord; this.decimalesRiwi = decimalesRiwi; }
public void prepare() { dstPoints.sortBy(enPointColumn.colPointnumber); matchPoints.Clear(); foreach (ClassCADdyPunkt dstPoint in dstPoints.Punkte) { ClassCADdyPunkt srcPoint = srcPoints.getPointByName(dstPoint.Punktnummer); if (srcPoint != null) { ClassTransformPointPair matchPoint = new ClassTransformPointPair(srcPoint, dstPoint); matchPoints.Add(matchPoint); } } }
public void setUsing(ClassTransformPointPair fromMe) { if (fromMe != null) { foreach (ClassTransformPointPair matchPoint in matchPoints) { if (matchPoint.PointName.ToLower().Equals(fromMe.PointName.ToLower())) { matchPoint.BUsePoint = fromMe.BUsePoint; matchPoint.BUseZ = fromMe.BUseZ; break; } } } }