Example #1
0
        private void buttonShiftBlocks_Click(object sender, EventArgs e)
        {
            BlocksSource     src    = GetBlocksSource(sender);
            BlocksCollection blocks = GetRightBlocks(src);
            Vec vec = new Vec((int)numericUpDownXShift.Value, (int)numericUpDownYShift.Value, (int)numericUpDownZShift.Value);

            blocks.Shift(vec);
            Status("{0} blocks were shifted by {1} vector.", src, vec);
            SaveButtonUpdate(src == BlocksSource.Puzzle);
        }