public void AddVertexControlBox(DrawingControl control, Point point) { var action = new AddVertexAction(control); action.Location = point; SendAction(action); }
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); }
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; }
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); }