Quintiq file version 2.0
#parent: #root
Method ShowHideComponent () id:Method_DialogEditVisualizationProperties_ShowHideComponent
{
  #keys: '[110880.6.1696715113]'
  Body:
  [*
    // Show or hide component
    
    data := DataHolderUnitNode.Data();
    
    isroot := isnull( data );
    LabelSupplyChainBackground.Visible( isroot );
    SupplyChainPanelImage.Visible( isroot );
    SupplyChainNodeImage.Visible( isroot );
    LabelSupplyChainBackgroundString.Visible( isroot );
    ButtonSelectSCBImage.Visible( isroot );
    ButtonClearSCB.Visible( isroot );
    
    LabelUnitBackground.Visible( not isroot );
    UnitPanelImage.Visible( not isroot );
    UnitNodeImage.Visible( not isroot );
    LabelUnitBackgroundString.Visible( not isroot );
    ButtonSelectUBImage.Visible( not isroot );
    ButtonClearUB.Visible( not isroot );
  *]
}
