internal UserInfoVariable(XmlElement varElement)
 {
     UserInfoVariableEditor e =  new UserInfoVariableEditor();
     e.VariableName = varElement.GetAttribute("Name");
     e.VariableKey = varElement.GetAttribute("Key");
     this.Editor = e;            
 }
        internal UserInfoVariable(XmlElement varElement)
        {
            UserInfoVariableEditor e = new UserInfoVariableEditor();

            e.VariableName = varElement.GetAttribute("Name");
            e.VariableKey  = varElement.GetAttribute("Key");
            this.Editor    = e;
        }
        public System.Xml.XmlElement GetXml()
        {
            UserInfoVariableEditor editor = this.Editor as UserInfoVariableEditor;
            XmlHelper h = new XmlHelper("<Variable/>");

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