public override void UpdatePage(ObjectPropertiesPageEventArgs e) { var rectangles = RectanglesController.GetRectangles(e.Objects).ToList(); if (rectangles.Count != 0) { _control.SetData(rectangles); } }
public override bool ShouldDisplay(ObjectPropertiesPageEventArgs e) { if (e.ObjectCount == 0) { return(false); } var rectangles = RectanglesController.GetRectangles(e.Objects).ToList(); if (rectangles.Count == 0) { return(false); } _control.SetData(rectangles); return(true); }