public void Add(WxeStep step) { ArgumentUtility.CheckNotNull("step", step); _steps.Add(step); step.SetParentStep(this); }
public void Insert(int index, WxeStep step) { if (_executingStep >= index) { throw new ArgumentException("Cannot insert step only after the last executed step.", "index"); } ArgumentUtility.CheckNotNull("step", step); _steps.Insert(index, step); step.SetParentStep(this); }