public void EditSimulation(Simulation simulation, Compound compound) { _simulation = simulation; Compound = compound; _protocolProperties = simulation.CompoundPropertiesFor(compound).ProtocolProperties; var templateProtocol = _buildingBlockInSimulationManager.TemplateBuildingBlockUsedBy(_simulation, _protocolProperties.Protocol); _protocolSelectionDTO = new ProtocolSelectionDTO { BuildingBlock = templateProtocol }; _view.BindTo(_protocolSelectionDTO); updateActiveProtcol(); }
public void BindTo(ProtocolSelectionDTO protocolSelectionDTO) { _screenBinder.BindToSource(protocolSelectionDTO); layoutItemProtocol.Text = uxProtocolSelection.BuildingBlockType.FormatForLabel(); }