/// <summary> /// Unpacks the users. /// </summary> /// <param name="usrs">The usrs.</param> /// <param name="saveUsers">The save users.</param> /// <returns></returns> internal static UserCollection UnpackUsers( XmlNodeList usrs, SaveUsersDelegate saveUsers ) { UserCollection usrcol = new UserCollection(saveUsers); for (int i=0; i<usrs.Count; i++) { Console.WriteLine("Unpacking a user"); usrcol.Add( usrs[i], saveUsers ); } return usrcol; }
/// <summary> /// Adds the specified user node. /// </summary> /// <param name="userNode">The user node.</param> /// <param name="saveUsersDel">The delegate for saving the users file.</param> internal void Add( XmlNode userNode, SaveUsersDelegate saveUsersDel ) { Add( new User( userNode, saveUsersDel ) ); }
/// <summary> /// Initializes a new instance of the <see cref="UserCollection"/> class. /// </summary> /// <param name="saveUsers">The saveusers delgate.</param> public UserCollection(SaveUsersDelegate saveUsers) { this.saveUsers = saveUsers; }