Esempio n. 1
0
        private void LoadData()
        {
            if (webFile.State == StateType.Error)
            {
                Script.Literal("alert({0})", webFile.Message);
            }
            else if (webFile.State == StateType.Received)
            {
                XmlNode node = Util.SelectSingleNode(webFile.GetXml(), "Folder");

                if (node == null)
                {
                    XmlDocument doc = webFile.GetXml();
                    if (doc != null)
                    {
                        node = Util.SelectSingleNode(doc, "Folder");
                    }
                }

                if (node != null)
                {
                    ClearChildren();
                    ParseXML(node);
                }
                if (onComplete != null)
                {
                    onComplete();
                }
            }
        }
Esempio n. 2
0
 private void GlyphXmlReady()
 {
     if (webFile.State == StateType.Error)
     {
         Script.Literal("alert({0})", webFile.Message);
     }
     else if (webFile.State == StateType.Received)
     {
         LoadXmlGlyph(webFile.GetXml());
     }
 }
Esempio n. 3
0
 private void LoadXmlDocument()
 {
     if (webFile.State == StateType.Error)
     {
         Script.Literal("alert({0})", webFile.Message);
     }
     else if (webFile.State == StateType.Received)
     {
         FromXml(webFile.GetXml());
         callMe();
     }
 }
Esempio n. 4
0
        private void LoadData()
        {
            if (webFile.State == StateType.Error)
            {
                Script.Literal("alert({0})", webFile.Message);
            }
            else if (webFile.State == StateType.Received)
            {
                LoadFromXML(webFile.GetXml());

                if (onComplete != null)
                {
                    onComplete();
                }
            }
        }