public static void UpdateContent(UILogDataTypes type, string info, bool isSFC = false) { if (LogStorage.Find(x => x.dataType == type) == null) { LogStorage.Add(new LogContentInfo(type, info, isSFC)); } else { LogStorage.Find(x => x.dataType == type).UpdateContent(info, isSFC); } }
private static string GetContentByType(UILogDataTypes type) { LogContentInfo currContent = LogStorage.Find(x => x.dataType == type); if (currContent == null) { return(null); } else { string info = currContent.content; if (currContent.isSingleFrameContent) { LogStorage.Remove(currContent); } return(info); } }
public LogContentInfo(UILogDataTypes type, string info, bool isSFC) { dataType = type; isSingleFrameContent = isSFC; content = info; }