protected override void Initialize() { SSObject model = SolutionObjectData.GetSolutionItems(); this.Container.RegisterType <IRenderedViewModel, RenderedViewModel>(new InjectionFactory(c => new RenderedViewModel(model))); this.Container.RegisterType <IMainControlViewModel, MainControlViewModel>(); this.Container.RegisterType <ISSObjectViewModel, SSObjectViewModel>(); this.Container.RegisterType <IObjectTreeViewModel, ObjectTreeViewModel>(new InjectionFactory(c => new ObjectTreeViewModel(model))); }
public void UpdateSolutionItems() { SSObject ssObjects = SolutionObjectData.GetSolutionItems(); rootItem = new SSObjectViewModel(ssObjects); this.solutionObjects = new ReadOnlyCollection <ISSObjectViewModel>( new SSObjectViewModel[] { rootItem }); }