Пример #1
0
        public static void RaiseLog(
            DateTime timestamp,
            LogMessageType type,
            string[] data,
            bool isImport = false)
        {
            var log = string.Join(
                "|",
                new[]
            {
                type.ToCode(),
                timestamp.ToString("O")
            }.Union(data));

            ActGlobals.oFormActMain.BeginInvoke((MethodInvoker) delegate
            {
                ActGlobals.oFormActMain.ParseRawLogLine(isImport, timestamp, log);
            });
        }
Пример #2
0
 public static string ToKeyword(
     this LogMessageType type)
 => $"] {type.ToCode()}:";