Exemple #1
0
 /// <summary>
 /// Removes rectangle object from scene
 /// </summary>
 /// <param name="rectangle">Rectangle object</param>
 public void RemoveRectangle(RectangleObject rectangle)
 {
     if (Rectangles.Contains(rectangle))
     {
         Rectangles.Remove(rectangle);
     }
 }
Exemple #2
0
 private void _client_RectangleAdded(object sender, RemoteRectAddedEventArgs e)
 {
     if (!Rectangles.Contains(e.Rect)) //Check if we have not received the same rect that we have just finished...
     {
         InvokeUI(() =>
         {
             Rectangles.Add(e.Rect);
         });
     }
 }