示例#1
0
 public void DeleteClient(int id)
 {
     Users.Remove(Users.Single(u => u.ID == id));
     SaveUsers();
 }
示例#2
0
 public void UpdateUser(User user)
 {
     Users[Users.IndexOf(Users.Single(u => u.ID == user.ID))] = user;
     SaveUsers();
 }
示例#3
0
 public User GetUser(int id)
 {
     return(Users.Single(u => u.ID == id));
 }