internal ResourceVariable(XmlElement varElement) { ResourceVariableEditor e = new ResourceVariableEditor(); e.VariableName = varElement.GetAttribute("Name"); e.VariableKey = varElement.GetAttribute("Key"); this.Editor = e; }
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(".")); }