private void beginGame() { options.hideControls.Clear(); resizeLabels(); noOfMoves = 0; noOfRounds = 0; currentCommandNameIndex = 0; timer.Enabled = true; mainTab.SelectedIndex = 1; setGamePanel.Hide(); gamePanel.Show(); currentMode = Options.Mode.GAME; }
private void setFieldButton_Click(object sender, EventArgs e) { gridPanel.Controls.Clear(); for (int i = 0; i < Options.SIZE; i++) { for (int j = 0; j < Options.SIZE; j++) { DesignerCell cell = new DesignerCell(); gridPanel.Controls.Add(cell); } } resizeLabels(); mainTab.SelectedIndex = 1; setGamePanel.Show(); gamePanel.Hide(); timer.Enabled = false; currentMode = Options.Mode.DESIGN; }