예제 #1
0
        private void RemoveUser(User user)
        {
            User reciver = users.SingleOrDefault(u => u.Name.ToUpperInvariant() == user.Name.ToUpperInvariant());

            if (reciver != null)
            {
                users.Remove(user);
            }

            UserLeave?.Invoke(this, new ChatEventArgs(user));
        }
예제 #2
0
 private void InvokeUserLeaveEvent(User user)
 {
     UserLeave?.Invoke(this, user);
 }
예제 #3
0
 public void OnUserLeave(User u)
 {
     UserLeave?.Invoke(this, u);
 }