Ejemplo n.º 1
0
 /// <summary>
 /// 将对象保存进xml文档中
 /// </summary>
 public override XmlNode SaveToXMl()
 {
     AojXmlHelper xmlHelper = new AojXmlHelper();
     xmlHelper.objXmlDoc.LoadXml("<Table></Table>");
     Dictionary<string, string> dicObjectParentSetting = this.GetObjectParentSetting();
     xmlHelper.InsertAttribute("Table", dicObjectParentSetting);
     XmlNode rootNode = xmlHelper.objXmlDoc.SelectSingleNode("Table");
     this.InsertChildNode(xmlHelper, rootNode);
     return rootNode;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 将对象保存进xml文档中
 /// </summary>
 public override XmlNode SaveToXMl()
 {
     AojXmlHelper xmlHelper = new AojXmlHelper();
     xmlHelper.objXmlDoc.LoadXml("<Label></Label>");
     Dictionary<string, string> dicObjectParentSetting = this.GetObjectParentSetting();
     xmlHelper.InsertAttribute("Label", dicObjectParentSetting);
     Dictionary<string, string> dicObjectChildSetting = this.GetObjectChildSetting();
     xmlHelper.InsertNode("Label", "Text", this.Text, dicObjectChildSetting);
     return xmlHelper.objXmlDoc.SelectSingleNode("Label");
 }