Quintiq file version 2.0
#parent: #root
Method ShowHideComponents () id:Method_DialogCreateEditProduct_ShowHideComponents
{
  #keys: '[124808.2.592115605]'
  Body:
  [*
    // Show/hide components
    
    uom := guard( Dialog.Data().UnitOfMeasure_MP(), null( UnitOfMeasure_MP ) );
    
    isshown := false;
    
    if( not isnull( uom ) )
    {
      isshown := uom <> SelectionUnitOfMeasurement.Data();
    }
    
    ImageUnitOfMeasurement.Visible( isshown );
  *]
}
