public void AddMessage(string msg, ProgressReport pr = null) { this.MessageList.Add(msg); if (pr != null) { pr.Report(msg); } else { this.Progress?.Report(msg); } }
public void AddError(string msg, ProgressReport pr = null) { this.ErrorList.Add(msg); if (pr != null) { pr.Report(msg); } else { this.Progress?.Report(msg); } }
public ResultMessageList(ProgressReport pr) { this.Progress = pr; }