/// <summary> /// Raises the ImageProcessingCommandStarted event. /// </summary> /// <param name="command">Executing command.</param> /// <param name="e">The <see cref="ImageProcessingEventArgs"/> instance containing the event data.</param> void OnImageProcessingCommandStarted(ProcessingCommandBase command, ImageProcessingEventArgs e) { if (ImageProcessingCommandStarted != null) { ImageProcessingCommandStarted(command, e); } }
/// <summary> /// Handler of the ProcessingCommandBase.Started event. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ImageProcessingEventArgs"/> instance containing the event data.</param> void command_Started(object sender, ImageProcessingEventArgs e) { ProcessingCommandBase command = (ProcessingCommandBase)sender; command.Started -= new EventHandler <ImageProcessingEventArgs>(command_Started); OnImageProcessingCommandStarted((ProcessingCommandBase)sender, e); }