Skip to content

Commit

Permalink
Fixes #2287 create sim (#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
msevestre authored Aug 4, 2022
1 parent 5778730 commit 47d5286
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
using PKSim.Assets;
using OSPSuite.Assets;
using OSPSuite.Presentation.Core;
using OSPSuite.Utility.Events;
using PKSim.Assets;
using PKSim.Presentation.Views.Simulations;
using OSPSuite.Assets;
using OSPSuite.Presentation.Core;

namespace PKSim.Presentation.Presenters.Simulations
{
public interface ISimulationCompoundConfigurationCollectorPresenter : ISimulationItemPresenter
{
}

public class SimulationCompoundConfigurationCollectorPresenter : SimulationCompoundCollectorPresenterBase<ISimulationCompoundCollectorView,ISimulationCompoundConfigurationPresenter>, ISimulationCompoundConfigurationCollectorPresenter
public class SimulationCompoundConfigurationCollectorPresenter : SimulationCompoundCollectorPresenterBase<ISimulationCompoundCollectorView, ISimulationCompoundConfigurationPresenter>, ISimulationCompoundConfigurationCollectorPresenter
{
public SimulationCompoundConfigurationCollectorPresenter(ISimulationCompoundCollectorView view, IApplicationController applicationController, IConfigurableLayoutPresenter configurableLayoutPresenter, IEventPublisher eventPubliser) : base(view, applicationController, configurableLayoutPresenter, eventPubliser)
public SimulationCompoundConfigurationCollectorPresenter(
ISimulationCompoundCollectorView view,
IApplicationController applicationController,
IConfigurableLayoutPresenter configurableLayoutPresenter,
IEventPublisher eventPublisher) : base(view, applicationController, configurableLayoutPresenter, eventPublisher)
{
view.Caption = PKSimConstants.UI.SimulationCompoundsConfiguration;
view.ApplicationIcon = ApplicationIcons.Compound;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OSPSuite.Presentation.Presenters;
using PKSim.Core.Model;
using PKSim.Presentation.Views.Simulations;
using OSPSuite.Presentation.Presenters;

namespace PKSim.Presentation.Presenters.Simulations
{
Expand All @@ -14,8 +14,10 @@ public class SimulationCompoundConfigurationPresenter : AbstractSubPresenter<ISi
private readonly ISimulationCompoundParameterAlternativesSelectionPresenter _alternativesSelectionPresenter;
private readonly ISimulationCompoundCalculationMethodSelectionPresenter _calculationMethodSelectionPresenter;

public SimulationCompoundConfigurationPresenter(ISimulationCompoundConfigurationView view,
ISimulationCompoundParameterAlternativesSelectionPresenter alternativesSelectionPresenter, ISimulationCompoundCalculationMethodSelectionPresenter calculationMethodSelectionPresenter)
public SimulationCompoundConfigurationPresenter(
ISimulationCompoundConfigurationView view,
ISimulationCompoundParameterAlternativesSelectionPresenter alternativesSelectionPresenter,
ISimulationCompoundCalculationMethodSelectionPresenter calculationMethodSelectionPresenter)
: base(view)
{
_alternativesSelectionPresenter = alternativesSelectionPresenter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public class SimulationCompoundParameterAlternativesSelectionPresenter : Abstrac
private CompoundProperties _compoundProperties;
private Compound _compound;

public SimulationCompoundParameterAlternativesSelectionPresenter(ISimulationCompoundParameterAlternativesSelectionView view, ILazyLoadTask lazyLoadTask, ISimulationToSimulationCompoundParameterMappingDTOMapper simulationCompoundParameterMappingDTOMapper) : base(view)
public SimulationCompoundParameterAlternativesSelectionPresenter(
ISimulationCompoundParameterAlternativesSelectionView view,
ILazyLoadTask lazyLoadTask,
ISimulationToSimulationCompoundParameterMappingDTOMapper simulationCompoundParameterMappingDTOMapper) : base(view)
{
_lazyLoadTask = lazyLoadTask;
_simulationCompoundParameterMappingDTOMapper = simulationCompoundParameterMappingDTOMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ public override void InitializeBinding()
.WithShowButton(ShowButtonModeEnum.ShowAlways);
}

public override bool HasError
{
get { return _gridViewBinder.HasError; }
}
public override bool HasError => _gridViewBinder.HasError;

private void rowStyle(object sender, RowStyleEventArgs e)
{
Expand Down

0 comments on commit 47d5286

Please sign in to comment.