public void PlayCommandList(List4 commandList) { while (commandList != null) { IIoCommand ioCommand = (IIoCommand)commandList._element; ioCommand.Replay(_io); commandList = commandList._next; } }
public List4 ReadCommandList() { List4 list = null; StreamReader reader = new StreamReader(_logFilePath); String line = null; while ((line = reader.ReadLine()) != null) { IIoCommand ioCommand = ReadLine(line); if (ioCommand != null) { list = new List4(list, ioCommand); } } reader.Close(); return(list); }