void HandleOwnerRemoved (object sender, UserEventArgs e) { Application.Instance.AsyncInvoke(delegate { UserList.OwnerRemoved(e.User); }); AddNotification (new NotificationMessage ( DateTimeOffset.Now, string.Format ("{0} was removed as an owner", e.User.Name) )); }
protected virtual void OnOwnerRemoved (UserEventArgs e) { if (OwnerRemoved != null) OwnerRemoved (this, e); }
protected virtual void OnUserJoined (UserEventArgs e) { if (UserJoined != null) UserJoined (this, e); }
protected virtual void OnUserLeft (UserEventArgs e) { if (UserLeft != null) UserLeft (this, e); }
void HandleUserJoined(object sender, UserEventArgs e) { Application.Instance.AsyncInvoke(delegate { UserList.UserJoined(e.User); }); AddNotification(new NotificationMessage( DateTimeOffset.Now, string.Format("{0} just entered {1}", e.User.Name, Channel.Name) )); }