示例#1
0
        public void AddVertexControlBox(DrawingControl control, Point point)
        {
            var action = new AddVertexAction(control);

            action.Location = point;

            SendAction(action);
        }
示例#2
0
        public void LoadControlBox(DrawingControl control)
        {
            var action = new LoadControlBoxAction(control);

            action.ShapeType  = control.ReviewShape.GetShapeType();
            action.StartPoint = control.StartPoint;
            action.EndPoint   = control.EndPoint;

            SendAction(action);
        }
示例#3
0
        public UserInfo(Socket socket, int id, ShapeDrawer shapedrawer)
        {
            Socket = socket;
            Id     = id;
            Name   = "Client " + id;

            ControlBox = new DrawingControl();
            ControlBox.SetShapDrawer(shapedrawer);
            ControlBox.ControlMode = ControlMode.CreateShape;
            ControlBox.Visible     = false;
        }
示例#4
0
        public void SendControlBox(DrawingControl control)
        {
            var action = new UpdateControlBoxAction(control);

            action.ShapeType      = control.ReviewShape.GetShapeType();
            action.ControlVisible = control.Visible;
            action.StartPoint     = control.StartPoint;
            action.EndPoint       = control.EndPoint;

            SendAction(action);
        }