/// <summary> /// Raises the <see cref="E:IMMLoginEvents_Event.LoginChanged" /> event. /// </summary> /// <param name="source">The source.</param> /// <param name="loginObject">The login object.</param> public static void RaiseLoginChanged(this IMMEditor source, IMMLoginObject loginObject) { IMMFireLoginEvents eventHandler = source as IMMFireLoginEvents; if (eventHandler != null) { eventHandler.FireLoginChanged(loginObject); } }
/// <summary> /// Raises the <see cref="E:IMMLoginEvents_Event.LoginChanged" /> event. /// </summary> /// <param name="source">The source.</param> /// <param name="app">The application.</param> public static void RaiseLoginChanged(this IMMLoginObject source, IApplication app) { var editor = app.GetEditorM(); editor.RaiseLoginChanged(source); }