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

            action.Location = point;

            SendAction(action);
        }
Example #2
0
        private AddVertexAction GetAddVertexAction(int senderId, NetworkStream stream)
        {
            // Location
            var action = new AddVertexAction(_manager.ClientList[senderId].ControlBox);
            var sx     = ReadInt(stream);
            var sy     = ReadInt(stream);

            action.Location = new Point(sx, sy);

            return(action);
        }
Example #3
0
 private void SendAddVertexAction(AddVertexAction action, NetworkStream stream)
 {
     WriteInt(action.Location.X, stream);
     WriteInt(action.Location.Y, stream);
 }