Ejemplo n.º 1
0
 public void UpLoad()
 {
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/LorR", LorR? "左" : "右");
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/Radius", Radius.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/Height", Height.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/DeltAx", DeltAx.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/DeltAy", DeltAy.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/DeltB", DeltB.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/AMinSize", AMinSize.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/AMaxNum", AMaxNum.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/BMinSize", BMinSize.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/BMaxNum", BMaxNum.ToString());
     XMLParser.getInstance().set("//standard" + "[@id=" + NameId + "]/Aradius", Aradius.ToString());
 }
Ejemplo n.º 2
0
        public void Creat()
        {
            XMLParser.getInstance().addNodeWithID("//standards", "standard", NameId);



            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "Radius", Radius.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "Height", Height.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "DeltAx", DeltAx.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "DeltAy", DeltAy.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "DeltB", DeltB.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "AMinSize", AMinSize.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "AMaxNum", AMaxNum.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "BMinSize", BMinSize.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "BMaxNum", BMinSize.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "Aradius", Aradius.ToString());
            XMLParser.getInstance().addNodeWithText("//standard[@id=" + NameId + "]", "LorR", LorR.ToString());
        }