public virtual void EditSimulation(Simulation simulation, CreationMode creationMode) { Clear(); _simulation = simulation; AddSubPresentersFor(simulation); _configurableLayoutPresenter.AddViews(AllSubCompoundPresenters().Where(ShouldBeDisplayed).Select(x => x.BaseView)); }
public void LoadViews() { var views = new List <IResizableView>(); var model = new TestEnvironment().Model; for (int i = 0; i < 2; i++) { var quantitySelectionDTOs = model.Root.GetAllChildren <IQuantity>(x => x.Persistable) .MapAllUsing(_quantitySelectionDTOMapper); var view = _container.Resolve <ITestResizableView>(); view.BindTo(quantitySelectionDTOs); views.Add(view); } _configurableLayoutPresenter.AddViews(views); views.Each(x => x.AdjustHeight()); views.Each(x => x.Repaint()); }