Ejemplo n.º 1
0
        protected virtual void OnWrappingChanged(bool oldHoriz, bool newHoriz, bool oldVerti, bool newVerti)
        {
            if (WrappingChanged != null)
            {
                GridPointMatrixWrappingChangedEventArgs e =
                    new GridPointMatrixWrappingChangedEventArgs(this, oldHoriz, newHoriz, oldVerti, newVerti);
                WrappingChanged(e);
            }

            // set indexer delegate
            if (newHoriz || newVerti)
                FindIndexedGridPoint = new GetIndexer(GetIndexer_Wrap);
            else
                FindIndexedGridPoint = new GetIndexer(GetIndexer_NoWrap);

            // create new child Sprites for all Sprite instances on this grid
            Sprites.CreateChildSprites(this);
        }
Ejemplo n.º 2
0
 private void _GridPointMatrixWrappingChanged(GridPointMatrixWrappingChangedEventArgs e)
 {
     refreshNeeded = MatrixesRefreshType.All;
 }