private void OnOpenSudokuMenuClick(object sender, EventArgs e) { using (LoadSudokuForm loadSudokuForm = new LoadSudokuForm()) { if (loadSudokuForm.ShowDialog() == DialogResult.OK) { LoadSudoku(loadSudokuForm.SelectedSudoku); statusLabel.Text = string.Format("Collection: {0}, Sudoku: {1}", loadSudokuForm.SelectedCollection, loadSudokuForm.SelectedSudokuIndex); (grid as Control).KeyUp += OnGridKeyUp; grid.MouseMove += OnGridMouseMove; grid.Paint += OnGridPaint; } } }