public static void AddMark(this LineWalker walker, double len, LineWalkDashStyle daskStyle) { switch (daskStyle) { default: throw new NotSupportedException(); case LineWalkDashStyle.Solid: walker.AddWalkMark(new LineWalkerMark(len, SimpleSolidLine)); break; case LineWalkDashStyle.Blank: walker.AddWalkMark(new LineWalkerMark(len, SimpleBlankLine)); break; } }
public static void AddMark(this LineWalker walker, double len, LineSegmentDelegate segDel) { var mark = new LineWalkerMark(len, segDel); walker.AddWalkMark(mark); }