Exemple #1
0
        public void CreateUser(String name)
        {
            var theUser = new User(name);

            if (File.Exists(@"h:\users.xml"))
            {
                var userList = deserializeFromXML();

                foreach (User u in userList.Users)
                {
                    users.Users.Add(u);

                }
            }
            users.Users.Add(theUser);
        }
Exemple #2
0
 //Constructor
 public StorageController()
 {
     currentUser = new User();
     users = new UserList();
     levelDictionary = new Dictionary<String, Level>();
 }