Example #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);
     }
 }
Example #2
0
 /// <summary>
 /// Adds rectangle object at scene
 /// </summary>
 /// <param name="rectangle">Rectangle object</param>
 public void AddRectangle(RectangleObject rectangle)
 {
     Rectangles.Add(rectangle);
 }