Quintiq file version 2.0
#parent: #root
Method IsRunningButton () id:Method_FormMultiEchelonInventoryOptimization_IsRunningButton
{
  #keys: '[138670.0.279145303]'
  Body:
  [*
    if( ValueHolderIsRunning.Data() )
    {
      ButtonGenerateAllSafetyStock.SetProperty( 'Image', 'GEAR_STOP' );
      //ButtonGenerateAllSafetyStock.Enabled( false );
      ButtonGenerateAllSafetyStock.SetProperty( 'Tooltip', Translations::MP_Designer_OptimizerIsRunning() );
    }                                                                 
    else
    {
      ButtonGenerateAllSafetyStock.SetProperty( 'Image', 'GEAR_RUN' );
      //ButtonGenerateAllSafetyStock.Enabled( true );
      ButtonGenerateAllSafetyStock.SetProperty( 'Tooltip', Translations::MP_Designer_GenerateSafetyStock() )
    }
  *]
}
