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