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)); }
private void InvokeUserLeaveEvent(User user) { UserLeave?.Invoke(this, user); }
public void OnUserLeave(User u) { UserLeave?.Invoke(this, u); }