Quintiq file version 2.0
#parent: ToolbarMain/ButtonCopyScenario
Response OnClick () id:Response_ToolbarMain_ButtonCopyScenario_OnClick
{
  #keys: '[110880.4.440953800]'
  Body:
  [*
    // Copy current scenario
    dlg := construct( ScenarioManager_DialogCreateEditMPScenario );
    dlg.CopyScenario( SelectionScenario.Data(), this );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback )
           and guard( SelectionScenario.Data().CanCopy( feedback ), false );
  *]
  UserRequiresReadWrite: true
}
