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); }); }
public static string ToKeyword( this LogMessageType type) => $"] {type.ToCode()}:";