protected virtual void OnStageCompleted(int prodID, int stage) { if (StageCompleted != null) { StageCompletedEventArgs args = new StageCompletedEventArgs(); args.ProductID = prodID; args.Stage = stage; StageCompleted(this, args); } }
void al_StageCompleted(object sender, StageCompletedEventArgs e) { this.txtStageInfo.Text += "We're at stage: " + e.Stage.ToString(); this.txtStageInfo.Text += Environment.NewLine; this.txtStageInfo.Refresh(); }