Quintiq file version 2.0
#parent: #root
Method EditStrategy (
  Strategy selection,
  internal[GUIComponent] parent
) as Strategy id:Method_ScenarioManager_DialogCreateEditStrategy_EditStrategy
{
  #keys: '[112884.0.704991502]'
  Body:
  [*
    // Edit strategy
    
    SelectionStrategy.Data( selection );
    
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      SelectionStrategy.Data().Update( SelectionStrategy.Text() ); //We need to update the read only StrategyName attributes in StrategyLevel
      Dialog.CommitChanges();
    }
    
    return Dialog.Data().WrappedInstance();
  *]
}
