Quintiq file version 2.0
#parent: #root
Method SetPeriodsButtonImageAndTooltip () id:Method_DialogRunOptimizer_SetPeriodsButtonImageAndTooltip
{
  #keys: '[146140.1.1416267580]'
  Body:
  [*
    // Check data on both dropdownPeriod and change image and tooltip
    coversplanninghorizon := MacroPlan.GlobalParameters_MP().GetHasSelectedFullPlanningHorizon( DropDownListPeriodsFrom.Data(), DropDownListPeriodsTo.Data() );
    
    if( coversplanninghorizon )
    {               
      ButtonPlanWholeHorizon.Tooltip( Translations::MP_Optimizer_AllPlanningHorizonSelected_Tooltip() );
    }
    else
    {
      ButtonPlanWholeHorizon.Tooltip( Translations::MP_Optimizer_SelectAllPlanningHorizon_Tooltip() );
    }
  *]
}
