Example #1
0
 private void Initialize()
 {
     if (!fInitialized)
     {
         fInitialized   = true;
         fPrevStepArray = Array.ConvertAll(PrevStepName.ToArray(),
                                           (input) => Parent.Steps[input]);
         fPrevSteps     = new ReadOnlyCollection <StepConfig>(fPrevStepArray);
         fNextStepArray = Array.ConvertAll(NextStepNames.ToArray(),
                                           (input) => Parent.Steps[input.StepName]);
         fNextSteps = new ReadOnlyCollection <StepConfig>(fNextStepArray);
     }
 }
Example #2
0
 public void AddNextConfig(StepConfig config, int fromX, int fromY, int toX, int toY)
 {
     config.PrevStepName.Add(Name);
     NextStepNames.Add(new StepConnectionConfig(config.Name, fromX, fromY, toX, toY));
 }