Example #1
0
        private void buttonFlipBlocks_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This feature doesn't really flip the level entirely: while blocks positions will flip, their orientation won't change accordingly.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            BlocksSource     src    = GetBlocksSource(sender);
            BlocksCollection blocks = GetRightBlocks(src);

            blocks.Flip((Axis)comboBoxFlipping.SelectedIndex, BlockInfosManager);
            Status("{0} blocks were flipped along the {1}.", src, comboBoxFlipping.Text);
            SaveButtonUpdate(src == BlocksSource.Puzzle);
        }