Quintiq file version 2.0
#parent: #root
Method EnableDisableSelectionUnit (
  CampaignType_MP campaigntype
) id:Method_DialogCreateEditCampaignType_EnableDisableSelectionUnit
{
  #keys: '[136682.3.1458485806]'
  Body:
  [*
    //Enable Disable SelectionUnit
    feedback :="";
    canedit :=  CampaignType_MP::CanEditUnit( feedback, campaigntype );
    if ( not canedit )
    {
      SelectionUnit.DisableWithUserFeedback( feedback );
    }
    else
    {
      SelectionUnit.Enabled( true );
    }
  *]
}
