private void Random_Click(object sender, EventArgs e) { var popupForm = new RandomForm(this); DialogResult dialogResult = popupForm.ShowDialog(); if (dialogResult != DialogResult.OK) { return; } setColors(); createTableLayoutPanel(); createToGameMode(); randomPuzzle(); createLabels(); tableLayoutPanel1.Enabled = true; winLabel.Visible = false; }
private void Create_Click(object sender, EventArgs e) { var popupForm = new RandomForm(this); popupForm.Text = "Create your own Nonogram puzzle"; DialogResult dialogResult = popupForm.ShowDialog(); if (dialogResult != DialogResult.OK) { return; } setColors(); createTableLayoutPanel(); gameToCreateMode(); createLabels(); tableLayoutPanel1.Enabled = true; winLabel.Visible = false; }