示例#1
0
        public PreviewCodeDialog(GcodeDrawing d)
        {
            InitializeComponent();
            drawing = d;
            gMoves  = new SKPaint
            {
                Style       = SKPaintStyle.Stroke,
                Color       = SKColors.Red,
                StrokeWidth = 1.5f
            };

            gLines = new SKPaint
            {
                Style       = SKPaintStyle.Stroke,
                Color       = SKColors.Black,
                StrokeWidth = 2.0f
            };
            bounds();
        }
示例#2
0
 public void AddDrawing(GcodeDrawing drawing)
 {
     AllDrawings.Add(drawing);
 }