Exemple #1
0
        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;
            }
        }
Exemple #2
0
        public static LineWalkerMark AddMark(this LineWalker walker, double len, LineWalkDashStyle daskStyle)
        {
            LineWalkerMark mark = null;

            switch (daskStyle)
            {
            default: throw new NotSupportedException();

            case LineWalkDashStyle.Solid:
                mark = new LineWalkerMark(len, SimpleSolidLine);
                break;

            case LineWalkDashStyle.Blank:
                mark = new LineWalkerMark(len, SimpleBlankLine);
                break;
            }
            walker.AddMark(mark);
            return(mark);
        }