private void _createBoard(object s, EventArgs e) { var createDlg = new CreateDialog(); createDlg.ShowDialog(); if (createDlg.Board == null) return; var toolbox = new ToolboxForm(this); toolbox.Location = new Point(Location.X + Width, Location.Y); toolbox.Show(); _currentBoard = createDlg.Board; _refreshControls(); InfoBox.Instance.StopTimer(); Menu.MenuItems["boardMenu"].Enabled = false; Menu.MenuItems["solveMenu"].Enabled = false; _boardControl.Toolbox = toolbox; _boardControl.EditingMode = true; }
private void _editBoard(object s, EventArgs e) { var toolbox = new ToolboxForm(this); toolbox.Location = new Point(Location.X + Width, Location.Y); toolbox.Show(); _refreshControls(); InfoBox.Instance.StopTimer(); Menu.MenuItems["boardMenu"].Enabled = false; Menu.MenuItems["solveMenu"].Enabled = false; _boardControl.Toolbox = toolbox; _boardControl.EditingMode = true; }