Пример #1
0
        private void sizeClick(object o, EventArgs e)
        {
            SizeDialog dialog = new SizeDialog("Change the size of this puzzle", this.puzzleBoard.PuzzleSize);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.puzzleBoard.ChangeSize(dialog.ChosenSize);
                this.OnResize();
            }
        }
Пример #2
0
        private void moveClick(object o, EventArgs e)
        {
            SizeDialog dialog = new SizeDialog("Move the puzzle" + Environment.NewLine + "(use negative values to move left or up)", Point.Empty, "Move:");

            dialog.Text = "Move puzzle";
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.puzzleBoard.Move(dialog.ChosenSize);
                this.Draw();
            }
        }
Пример #3
0
        private void newPuzzleClick(object o, EventArgs e)
        {
            this.clearMessage();

            SizeDialog dialog = new SizeDialog("Create a new picross puzzle.");

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.puzzleBoard = new PuzzleBoard(dialog.ChosenSize.X, dialog.ChosenSize.Y, Settings.Get.EditorMode);
                this.OnResize();
            }
        }