Quintiq file version 2.0
#parent: #root
Method NewScenario (
  ScenarioManager owner,
  ScenarioNode scenarionode,
  Boolean enableSync
) id:Method_DialogCreateEditScenario_NewScenario_549 #extension
{
  Body:
  [*
    // New scenario
    strategy := select(ScenarioManager, Strategy, strategy, strategy.Name() = Translations::MP_GlobalParameters_DefaultStrategyName() );
    
    scenario := owner.ScenarioNode( relshadow,
                                    ScenarioMP,
                                    Parent := scenarionode,
                                    SelectedStrategy := strategy,
                                    State := ScenarioManager.MDSScenarioManager().State() );
    
    DataHolderActionCopy.Data( false );
    DataHolderDialogData.Data( &scenario );
    DataHolderDialogData.Data().EnableSync( enableSync );
    
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
