public SignedStrokeEraser(StrokeCollection collection, PermissionsData permissions, string ownerName) { this.permissions = permissions; this.ownerName = ownerName; signedStrokes = collection; eraserPathPoints = new List <Point>(); }
public void SendPermissions(PermissionsData data) { lock (stream) { sendBeginByte(); stream.WriteByte(Commands.CS_SEND_PERMISSIONS); stream.WriteByte(data.Serialize()); } }
public LanCanvas(InkCanvas canvas, IdGenerator generator, string owner, PermissionsData permissions) { eraserShape = new EllipseStylusShape(2, 2); PointerData = new SharedWindows.PointerData(); PointerData.Attributes = new DrawingAttributes(); PointerData.Attributes.Color = Colors.Red; PointerData.StayTime = 1500; PointerData.FadeTime = 500; OwnerName = owner; this.generator = generator; this.canvas = canvas; this.Permissions = permissions; DefaultDrawingAttributes = new DrawingAttributes(); cursorLibrary = new CursorLibrary(); modeChanger = new ModeChanger(); UpdatePermissions(); canvas.Dispatcher.Invoke(new Action(canvasInit)); drawer = new SignedStrokeDrawer(canvas.Strokes, generator, OwnerName); eraser = new SignedStrokeEraser(canvas.Strokes, permissions, OwnerName); cutter = new SignedStrokeCutter(canvas.Strokes); pointerDrawer = new SignedPointerStrokeDrawer(canvas.Strokes, OwnerName, generator, canvas.Dispatcher); ManualHandler = new ManualHandle(canvas); CanvasHandle = new CanvasEventsHandle(this, drawer, eraser, pointerDrawer); }