예제 #1
0
            public void WriteToSerializer(SerializerBase Stream)
            {
                Stream.WriteElementStart(s_UserFile);
                Stream.WriteData("LastType", m_LastTypeName);

                Stream.WriteElementEnd(s_UserFile);
            }
예제 #2
0
        public void WriteToSerializer(SerializerBase Stream)
        {
            Stream.WriteElementStart("Users");
            Dictionary <string, User> .Enumerator Iterator = m_Users.GetEnumerator();
            string Node = "User";

            while (Iterator.MoveNext())
            {
                Stream.WriteElementStart(Node);
                Stream.WriteData("Name", Iterator.Current.Key);
                Stream.WriteData("Role", (int)Iterator.Current.Value.Role);
                Stream.WriteData("Pass", Iterator.Current.Value.EncryptedPassword);
                Stream.WriteElementEnd(Node);
            }
            Stream.WriteElementEnd("Users");
        }