Ejemplo n.º 1
0
        private WidgetData ClearWidget(MatrixLoc loc)
        {
            MatrixLoc  arrayIndex = _containerBounds.ToIndex(loc);
            WidgetData widget     = _widgetArray[arrayIndex];

            _widgetArray[arrayIndex] = null;

            if (widget != null)
            {
                widget.ClearOwner();
                widget.IsDirtyChanged -= OnChildIsDirtyChanged;
            }

            return(widget);
        }