public void Add(string cmd, string result) { LogEntry le = new LogEntry(); le.Id = Entries.Count; le.Cmd = cmd; le.Result = result; le.LogDate = DateTime.Now; Entries.Add(le); }
public void Add(string cmd, string result, Collection<PSObject> psResult) { LogEntry le = new LogEntry(); le.Id = Entries.Count; le.Cmd = cmd; le.Result = result; le.PsResult = psResult; le.LogDate = DateTime.Now; Entries.Add(le); }
public void Add(LogEntry entry) { Entries.Add(entry); }