示例#1
0
        public void Add(WxeStep step)
        {
            ArgumentUtility.CheckNotNull("step", step);

            _steps.Add(step);
            step.SetParentStep(this);
        }
示例#2
0
        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);
        }