public void Redo(int cur) { for (int i = 0; i < cur; i++) { if (current <= commands.Count - 1) { Command command = commands[current]; current++; command.Redo(); } } }
public void Redo(int cur) { for (int i = 0; i < cur; i++) { if (current <= commands.Count - 1) { Command command = commands[current]; current++; command.Redo(); } } }