コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Painter.cs プロジェクト: Cendrb/LANPaint
 public Painter(LanCanvas lanCanvas, string name)
 {
     this.lanCanvas = lanCanvas;
     ManualHandle   = lanCanvas.ManualHandler;
     LocalName      = name;
 }
コード例 #4
0
ファイル: PainterSender.cs プロジェクト: Cendrb/LANPaint
 public PainterSender(LanCanvas lanCanvas, string name)
 {
     this.lanCanvas = lanCanvas;
     LocalName      = name;
     Handle         = new ServerHandle(this);
 }