protected virtual void OnStep(StepEventArgs e) { StepEventHandler handler = stepEventHandler; if (handler != null) { handler(this, e); } }