예제 #1
0
 public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
 {
     if (ChangeProfileRequest != null)
     {
         ChangeProfileRequest(e);
     }
 }
예제 #2
0
 public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
 {
     if (EventSink.ChangeProfileRequest != null)
     {
         EventSink.ChangeProfileRequest.Invoke(e);
     }
 }
예제 #3
0
        public static void EventSink_ChangeProfileRequest( ChangeProfileRequestEventArgs e )
        {
            Mobile from = e.Beholder;

            if ( from.ProfileLocked )
                from.SendAsciiMessage( "Your profile is locked. You may not change it." );
            else
                from.Profile = e.Text;
        }
예제 #4
0
 public static void InvokeChangeProfileRequest( ChangeProfileRequestEventArgs e )
 {
     if ( ChangeProfileRequest != null )
         ChangeProfileRequest( e );
 }
예제 #5
0
		public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
		{
			if (ChangeProfileRequest != null)
			{
				foreach (ChangeProfileRequestEventHandler currentDelegate in ChangeProfileRequest.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}
예제 #6
0
 public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
 {
     ChangeProfileRequest?.Invoke(e);
 }