public CanvasEventsHandle(LanCanvas canvas, SignedStrokeDrawer drawer, SignedStrokeEraser eraser, SignedPointerStrokeDrawer pointerDrawer) { drawer.StrokeDrawn += drawer_StrokeDrawn; eraser.StrokeErased += eraser_StrokeErased; pointerDrawer.PointerStrokeDrawn += pointerDrawer_PointerStrokeDrawn; canvas.WipedStrokes += canvas_WipedStrokes; canvas.WipedObjects += canvas_WipedObjects; }
public PainterReceiver(TcpClient remote, LanCanvas lanCanvas) { this.lanCanvas = lanCanvas; Permissions = lanCanvas.Permissions; if (remote == null || !remote.Connected) { throw new ApplicationException("Passed client is not connected"); } this.remote = remote; remoteStream = remote.GetStream(); getNameFromRemote(); startListeningForCommands(); Handle = new ReceiverHandle(this); }
public Painter(LanCanvas lanCanvas, string name) { this.lanCanvas = lanCanvas; ManualHandle = lanCanvas.ManualHandler; LocalName = name; }
public PainterSender(LanCanvas lanCanvas, string name) { this.lanCanvas = lanCanvas; LocalName = name; Handle = new ServerHandle(this); }