Ejemplo n.º 1
0
 /// <summary>
 /// 添加和修改多功能配置信息
 /// </summary>
 /// <param name="DgnInfo">多功能配置信息结构体</param>
 public void Add(Struct.StDgnConfig DgnInfo)
 {
     if (_DgnConfig.ContainsKey(DgnInfo.DgnPrjID))
     {
         this.Remove(DgnInfo.DgnPrjID);
     }
     _DgnConfig.Add(DgnInfo.DgnPrjID, DgnInfo);
     return;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 存储多功能配置字典
        /// </summary>
        public void Save()
        {
            clsXmlControl _Xml = new clsXmlControl();

            _Xml.appendchild("", "DgnConfig");
            foreach (string _n in _DgnConfig.Keys)
            {
                Struct.StDgnConfig _Dgn = _DgnConfig[_n];
                _Xml.appendchild("", "R", "ID", _Dgn.DgnPrjID, "Name", _Dgn.DgnPrjName, "OutPramerter", _Dgn.OutPramerter.Jion());
            }
            _Xml.SaveXml(Application.StartupPath + Const.Variable.CONST_DGNDICTIONARY);
            return;
        }