Esempio n. 1
0
 public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
 {
     if (ChangeProfileRequest != null)
     {
         ChangeProfileRequest(e);
     }
 }
Esempio n. 2
0
 public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
 {
     if (EventSink.ChangeProfileRequest != null)
     {
         EventSink.ChangeProfileRequest.Invoke(e);
     }
 }
Esempio n. 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;
        }
Esempio n. 4
0
 public static void InvokeChangeProfileRequest( ChangeProfileRequestEventArgs e )
 {
     if ( ChangeProfileRequest != null )
         ChangeProfileRequest( e );
 }
Esempio n. 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));
					}
				}
			}
		}
Esempio n. 6
0
 public static void InvokeChangeProfileRequest(ChangeProfileRequestEventArgs e)
 {
     ChangeProfileRequest?.Invoke(e);
 }