Пример #1
0
 protected virtual void OnOwnerRemoved(UserEventArgs e)
 {
     if (OwnerRemoved != null)
         OwnerRemoved(this, e);
 }
Пример #2
0
 protected virtual void OnUserJoined(UserEventArgs e)
 {
     if (UserJoined != null)
         UserJoined(this, e);
 }
Пример #3
0
 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)
     ));
 }
Пример #4
0
 protected virtual void OnUserLeft(UserEventArgs e)
 {
     if (UserLeft != null)
         UserLeft(this, e);
 }
Пример #5
0
 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)
     ));
 }