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