Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
    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);
        }
    }
Beispiel #3
0
 public LogContentInfo(UILogDataTypes type, string info, bool isSFC)
 {
     dataType             = type;
     isSingleFrameContent = isSFC;
     content = info;
 }