public void StylusButtonFunction(int? station, StylusMode sm) { SendCommand("L" + (station == null ? "*" : ((int)station).ToString("0")) + "," + (sm == StylusMode.Marker ? "0" : "1"), true); if (station == null) for (int i = 0; i < MaxStations; i++) _stylusButton[i] = sm; else _stylusButton[(int)station - 1] = sm; }
public void UseEraser(IEraserTool eraser) { Tool = eraser; Mode = StylusMode.Eraser; }
public void UsePaintBucket(IPaintBucketTool paintBucket) { Tool = paintBucket; Mode = StylusMode.PaintBucket; }
public void UseBrush(IBrushTool brush) { Tool = brush; Mode = StylusMode.Brush; }