/// <summary> /// Raises the step processed event. /// </summary> /// <param name="sender">Sender of the event.</param> /// <param name="e">Macro step event arguments.</param> protected void RaiseStepProcessedEvent(object sender, MacroStepEventArgs e) { // Raise the event if (StepProcessed != null) { StepProcessed(sender, e); } }
/// <summary> /// This operation handles the child macro processing a step. It raises the event up to the owner /// of this macro and ensures that the index and count values are correct /// </summary> private void objChildMacro_StepProcessed(object sender, MacroStepEventArgs e) { //Pass the event up the chain of macros RaiseStepProcessedEvent(sender, new MacroStepEventArgs(_totalIndex + e.Index, TotalCount)); }