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 }); }
private static IHierarchicalArrangement GetSubArr(IProjectVersion version, IHierarchicalArrangement parent, string name) { var subArr = version.GetArrangement(name); if (subArr == null) { subArr = parent.AddSubArrangement(name); } return(subArr); }