/// <summary> /// 处理消息 /// </summary> /// <param name="Content"></param> public void ProcessMessage(MessageObject Content) { MsgType type = MsgType.Note; if (Content.Type == MessageType.Debug || Content.Type == MessageType.PtDebug) { type = MsgType.Debug; } else if (Content.Type == MessageType.Error || Content.Type == MessageType.Warning) { type = MsgType.Error; } else if (Content.Type == MessageType.Note || Content.Type == MessageType.InsideInfo) { type = MsgType.Note; } //(MsgType)Enum.Parse(typeof(MsgType), Content.Type.ToString("d"))) if (processdata.IsUse(type)) { processdata.Process(Content.Message, DateTime.Now); } }