public override void OnOK() { if (Grid.SetGridStrings(tbText.Lines)) { Grid.PlayMode = SudokuGrid.PlayModes.Play; Form.UpdateMode(); Hide(); } else { MessageBox.Show("Grid not loaded", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }