protected void RaiseWarning(MagickException exception) { if (_warningEvent == null) { return; } MagickWarningException warning = exception as MagickWarningException; if (warning != null) { _warningEvent.Invoke(this, new WarningEventArgs(warning)); } }
/// <summary> /// Initializes a new instance of the <see cref="WarningEventArgs"/> class. /// </summary> /// <param name="exception">The MagickWarningException that was thrown.</param> public WarningEventArgs(MagickWarningException exception) { Exception = exception; }
/// <summary> /// Initializes a new instance of the WarningEventArgs class. /// </summary> /// <param name="exception">The MagickWarningException that was thrown.</param> public WarningEventArgs(MagickWarningException exception) { Exception = exception; }