Example #1
0
        private static void PopulateArrangement(NapaArrangementBrowserViewModel vm,
                                                IHierarchicalArrangement arrangement, ObjectBrowserNodeViewModel parent)
        {
            var method = vm.GetType().GetMethod("PopulateArrangement", BindingFlags.NonPublic | BindingFlags.Instance);

            method.Invoke(vm, new object[] { arrangement, parent });
        }
Example #2
0
        private static IHierarchicalArrangement GetSubArr(IProjectVersion version,
                                                          IHierarchicalArrangement parent, string name)
        {
            var subArr = version.GetArrangement(name);

            if (subArr == null)
            {
                subArr = parent.AddSubArrangement(name);
            }
            return(subArr);
        }