/// <summary> /// 添加和修改事件记录配置信息 /// </summary> /// <param name="EventLogInfo">多功能配置信息结构体</param> public void Add(Struct.StEventLogConfig EventLogInfo) { if (_EventLogConfig.ContainsKey(EventLogInfo.EventLogPrjID)) { this.Remove(EventLogInfo.EventLogPrjID); } _EventLogConfig.Add(EventLogInfo.EventLogPrjID, EventLogInfo); return; }
/// <summary> /// 存储事件记录配置字典 /// </summary> public void Save() { clsXmlControl _Xml = new clsXmlControl(); _Xml.appendchild("", "EventLogConfig"); foreach (string _n in _EventLogConfig.Keys) { Struct.StEventLogConfig _EventLog = _EventLogConfig[_n]; _Xml.appendchild("", "R", "ID", _EventLog.EventLogPrjID, "Name", _EventLog.EventLogPrjName, "OutPramerter", _EventLog.OutPramerter.Jion()); } _Xml.SaveXml(Application.StartupPath + Const.Variable.CONST_EVENTLOGDICTIONARY); return; }