/// <summary> /// Raises the <see cref="E:ConsoleWindowShowing" /> event. /// </summary> /// <param name="args">The <see cref="ConsoleWindowShowingEventArgs"/> instance containing the event data.</param> protected virtual void OnConsoleWindowShowing(ConsoleWindowShowingEventArgs args) { ConsoleWindowShowing?.Invoke(this, args); if (args.Window != null) { args.Window.OnShowing(args); } }
/// <summary> /// Raises the <see cref="E:Showing" /> event. /// </summary> /// <param name="args">The <see cref="ConsoleWindowShowingEventArgs"/> instance containing the event data.</param> protected internal virtual void OnShowing(ConsoleWindowShowingEventArgs args) => Showing?.Invoke(this, args);