private void beginButton_Click(object sender, EventArgs e) { if (MessageBox.Show("Desea guardar los cambios antes de comenzar un nuevo juego en blanco", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes) { saveButton.PerformClick(); } sCore = new SudokuCore(sCore.Contenedor); panel1.Invalidate(); }
private void loadButton_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { sCore = new SudokuCore(sCore.Contenedor, SudokuCore.Load(openFileDialog1.FileName)); if (x != -100) { UpGrade(); } panel1.Invalidate(); } }
public SudokuGame() { InitializeComponent(); sCore = new SudokuCore(panel1); InitializeRadioButtons(); }