コード例 #1
0
 internal ResourceVariable(XmlElement varElement)
 {
     ResourceVariableEditor e = new ResourceVariableEditor();
     e.VariableName = varElement.GetAttribute("Name");
     e.VariableKey = varElement.GetAttribute("Key");
     this.Editor = e;            
 }
コード例 #2
0
        internal ResourceVariable(XmlElement varElement)
        {
            ResourceVariableEditor e = new ResourceVariableEditor();

            e.VariableName = varElement.GetAttribute("Name");
            e.VariableKey  = varElement.GetAttribute("Key");
            this.Editor    = e;
        }
コード例 #3
0
        public System.Xml.XmlElement GetXml()
        {
            ResourceVariableEditor editor = this.Editor as ResourceVariableEditor;
            XmlHelper h = new XmlHelper("<Variable/>");

            h.SetAttribute(".", "Name", editor.VariableName);
            h.SetAttribute(".", "Source", this.Source);
            h.SetAttribute(".", "Key", editor.VariableKey);
            return(h.GetElement("."));
        }