예제 #1
0
        bool LoginFile()
        {
            LoginData dum = new LoginData(); bool lflag = false;

            while (XmlRead.Read())
            {
                if (XmlRead.Depth == 2)
                {
                    dum.FullName = XmlRead.Value;
                    XmlRead.Skip(); XmlRead.Skip();

                    XmlRead.Read();
                    dum.UserName = XmlRead.Value;
                    XmlRead.Skip(); XmlRead.Skip();

                    XmlRead.Read();
                    dum.PassWord = XmlRead.Value;
                    XmlRead.Skip(); XmlRead.Skip();

                    L.AddLast(dum);
                    lflag = true;
                }
            }

            return(lflag);
        }