Exemple #1
0
 /// <summary>
 /// Вернуть ход
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MenuActionRedo_Click(object sender, EventArgs e)
 {
     if (timer1.Enabled || typeAction != TypeAction.game)
     {
         return;
     }
     try
     {
         Cell cell = historyClass.Redo();
         cells[cell.X, cell.Y] = new Cell(cell);
         cells[cell.X, cell.Y].SelectCell();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }