예제 #1
0
 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();
 }
예제 #2
0
 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();
     }
 }
예제 #3
0
 public SudokuGame()
 {
     InitializeComponent();
     sCore = new SudokuCore(panel1);
     InitializeRadioButtons();
 }