Beispiel #1
0
		void HandleUsernameChanged (object sender, UsernameChangedEventArgs e)
		{
			Application.Instance.AsyncInvoke (delegate {
				this.UserList.UsernameChanged (e.OldUsername, e.User);
			});
			AddNotification (new NotificationMessage (DateTimeOffset.Now, "{0}'s nick has changed to {1}.", e.OldUsername, e.User.Name));
		}
Beispiel #2
0
		protected virtual void OnUsernameChanged (UsernameChangedEventArgs e)
		{
			if (UsernameChanged != null)
				UsernameChanged (this, e);
		}