private void InitializeSteps(List <IStepViewModel> steps) { if (steps == null) { return; } var newRingViewModel = new NewRingViewModel(); foreach (var stepViewModel in steps) { SetNewRing(stepViewModel, newRingViewModel); if (stepViewModel.ToNext != null) { stepViewModel.ToNext += ToNext; } } }
private static void SetNewRing(IStepViewModel stepViewModel, NewRingViewModel newRingViewModel) { stepViewModel.NewRingViewModel = newRingViewModel; }