コード例 #1
0
        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;
                }
            }
        }
コード例 #2
0
 private static void SetNewRing(IStepViewModel stepViewModel, NewRingViewModel newRingViewModel)
 {
     stepViewModel.NewRingViewModel = newRingViewModel;
 }