void Setup()
 {
     stages = new StageControl[nStages];
     stagesFlow.ClearChildren();
     for (int i = 0; i < nStages; i++)
         stagesFlow.AddChild(stages[i] = new StageControl
         {
             Stage = (i + 1),
             State = StageCompletedState.Minimized,
         });
 }