Example #1
0
        public override void UpdatePage(ObjectPropertiesPageEventArgs e)
        {
            var rectangles = RectanglesController.GetRectangles(e.Objects).ToList();

            if (rectangles.Count != 0)
            {
                _control.SetData(rectangles);
            }
        }
Example #2
0
        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);
        }