Ejemplo n.º 1
0
        //melo 添加于2006.12.4 用于多语言
        public ArrayList GetImportType(ControlLibrary.Web.Language.LanguageComponent languageComponent)
        {
            XmlDocument xmlDoc = new XmlDocument();

            xmlDoc.Load(this.XmlPath);
            XmlNodeList nodeList = xmlDoc.GetElementsByTagName("datatype");

            ArrayList itArray = new ArrayList();

            if (nodeList.Count > 0)
            {
                for (int i = 0; i < nodeList.Count; i++)
                {
                    string          name = nodeList[i].Attributes["name"].InnerText;
                    string          text = languageComponent.GetString("$Grid_" + name);
                    DictionaryEntry de   = new DictionaryEntry(name, text);
                    itArray.Add(de);
                }
            }

            return(itArray);
        }
Ejemplo n.º 2
0
 public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     this.processor = (LanguageComponent)component;
 }
Ejemplo n.º 3
0
 public LanguageComponentDesigner()
 {
     this.processor = null;
 }