Exemple #1
0
        public void DeleteUser(string login)
        {
            User user = search(login);

            if (user == null)
            {
                return;
            }
            else
            {
                Users.Remove(user.Id);
                Amount--;
            }
            Changed();
        }
Exemple #2
0
 public void RemoveUser(UserInfo ui)
 {
     Users.Remove(ui);
 }
Exemple #3
0
 public void RemoveUser(User user)
 {
     Users.Remove(user);
     SaveChanges();
     log.Info($"Removed user: username={user.Username}");
 }