public void Add(UndoCommand command, Device device) { if (device != null) { UndoCommands.Push(new UndoInfo(command, device)); } }
public UndoInfo(UndoCommand command, Device device) { this.command = command; this.deviceChanged = device; }