private void PushParent(BaseLevelExperimentViewModel experiment, List<Crumb> crumbs)
        {
            SubLevelExperimentViewModel subExperimentVM = experiment as SubLevelExperimentViewModel;
            if (subExperimentVM != null)
            {
                BaseLevelExperimentViewModel parent = subExperimentVM.Owner;
                PushParent(parent, crumbs);

                Crumb crumb = new ExperimentCrumb(parent);
                crumbs.Add(crumb);
            }
        }
Beispiel #2
0
        private void PushParent(BaseLevelExperimentViewModel experiment, List <Crumb> crumbs)
        {
            SubLevelExperimentViewModel subExperimentVM = experiment as SubLevelExperimentViewModel;

            if (subExperimentVM != null)
            {
                BaseLevelExperimentViewModel parent = subExperimentVM.Owner;
                PushParent(parent, crumbs);

                Crumb crumb = new ExperimentCrumb(parent);
                crumbs.Add(crumb);
            }
        }