예제 #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;
 }