Пример #1
0
 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;
 }
Пример #2
0
 public void UseEraser(IEraserTool eraser)
 {
     Tool = eraser;
     Mode = StylusMode.Eraser;
 }
Пример #3
0
 public void UsePaintBucket(IPaintBucketTool paintBucket)
 {
     Tool = paintBucket;
     Mode = StylusMode.PaintBucket;
 }
Пример #4
0
 public void UseBrush(IBrushTool brush)
 {
     Tool = brush;
     Mode = StylusMode.Brush;
 }