Quintiq file version 2.0
#parent: ListLane
Response OnClick (
  structured[Lane] selection
) id:Response_ListLane_MenuEnableDisableLanes_OnClick
{
  #keys: '[110704.0.543768340]'
  Body:
  [*
    //Toggle IsEnabled of process
    Form.EnableDisableLanes( selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListLane/Responsedef_ListLane_Menu_OnClick
  Initiator: 'MenuEnableDisableLanes'
  Precondition:
  [*
    if ( selection.Element( 0 ).IsEnabled() )
    {
      MenuEnableDisableLanes.SetProperty( 'Image', 'EMPTYCHECKBOX' );
      MenuEnableDisableLanes.Text( Translations::MP_Designer_Disable() );
    }
    else
    {
      MenuEnableDisableLanes.SetProperty( 'Image', 'CHECKEDCHECKBOX' );
      MenuEnableDisableLanes.Text( Translations::MP_Designer_Enable() );
    }
    return true;
  *]
  UserRequiresReadWrite: true
}
