protected RecipeStep CopyValuesToClone(RecipeStep step) { step.IsStepDone = IsStepDone; step.ShouldCancel = ShouldCancel; step.MessageToUser = MessageToUser; step.NextGrammarNeeded = NextGrammarNeeded; return(step); }
public override bool Equals(object obj) { RecipeStep step = obj as RecipeStep; if (step == null) { return(false); } else if (!step.IsStepDone.Equals(IsStepDone)) { return(false); } else if (step.MessageToUser == null && MessageToUser != null) { return(false); } else if (MessageToUser != null && !step.MessageToUser.Equals(MessageToUser)) { return(false); } else if (!step.Name.Equals(Name)) { return(false); } else if (step.NextGrammarNeeded == null && NextGrammarNeeded != null) { return(false); } else if (NextGrammarNeeded != null && !step.NextGrammarNeeded.Equals(NextGrammarNeeded)) { return(false); } else if (!step.ShouldCancel.Equals(ShouldCancel)) { return(false); } return(true); }
public RecipeStepCall GetRecipeStepCall <T>(String stepType, T argument) { RecipeStep <T> step = GetStep(stepType) as RecipeStep <T>; return(new RecipeStepCall <T>(step, argument)); }
public virtual object Clone() { RecipeStep step = new RecipeStep(Name); return(CopyValuesToClone(step)); }
public RecipeStepCall GetRecipeStepCall(String stepType) { RecipeStep step = GetStep(stepType); return(new RecipeStepCall(step)); }
public RecipeStepCall(RecipeStep step, RecipeStepCall nextStep) { _step = step; _nextStep = nextStep; }
public RecipeStepCall(RecipeStep step) : this(step, null) { }
public override object Clone() { RecipeStep <T> step = new RecipeStep <T>(Name); return(CopyValuesToClone(step)); }
public RecipeStepCall(RecipeStep <T> step, T argument) : base(step) { _argument = argument; }