public MainForm() { // Required for Windows Form Designer support InitializeComponent(); _btnClose.Select(); }
/// <summary>Sets up the form based on the current configuration options.</summary> protected override void OnVisibleChanged(EventArgs e) { if (Visible) { chkHighlightEasyCell.Checked = _options.SuggestEasyCells; chkShowIncorrectCells.Checked = _options.ShowIncorrectCells; chkCreateWithSymmetry.Checked = _options.CreatePuzzlesWithSymmetry; chkPromptOnDelete.Checked = _options.PromptOnPuzzleDelete; chkParallelPuzzleGeneration.Checked = _options.ParallelPuzzleGeneration; chkSpeculativeGeneration.Checked = _options.SpeculativePuzzleGeneration; ConfiguredEnabledCheckboxes(); btnOK.Select(); } base.OnVisibleChanged(e); }