public override void Do()
        {
            base.Do();

            oldSelection = GridLayer.Selection;
            GridLayer.Selection = null;
        }
Ejemplo n.º 2
0
        public override void Do()
        {
            base.Do();

            oldSelection = GridLayer.Selection;
            GridLayer.Selection = new GridSelection(GridLayer, selectArea);
        }
        public override void Do()
        {
            base.Do();

            oldSelection = GridLayer.Selection;
            GridLayer.Selection = new GridSelection(GridLayer, area);
            GridLayer.Selection.SetUnderFromGrid();

            for (int i = 0; i < area.Width; i++)
                for (int j = 0; j < area.Height; j++)
                    GridLayer.Grid[i + area.X, j + area.Y] = newBits[i, j];
        }
        public override void Do()
        {
            base.Do();

            oldSelection = GridLayer.Selection;
            GridLayer.Selection = null;

            oldBits = new bool[oldSelection.Area.Width, oldSelection.Area.Height];
            for (int i = 0; i < oldSelection.Area.Width; i++)
            {
                for (int j = 0; j < oldSelection.Area.Height; j++)
                {
                    oldBits[i, j] = GridLayer.Grid[i + oldSelection.Area.X, j + oldSelection.Area.Y];
                    GridLayer.Grid[i + oldSelection.Area.X, j + oldSelection.Area.Y] = oldSelection.Under[i, j];
                }
            }
        }