Quintiq file version 2.0
#parent: #root
Method ShowHideComponentsForRadioButtonValue () derived id:Method_DialogEDIExportDEV_ShowHideComponentsForRadioButtonValue
{
  #keys: '[124808.0.727061256]'
  BaseType => //DialogEDIImportExport/Method_DialogEDIImportExport_ShowHideComponentsForRadioButtonValue
  Body:
  [*
    // Show / hide components for radio button value
    selection := RadioButtonGroupExcelOrDataManager.BoundValue();
    is3DDrive := selection = MPSyncUtility::ID_Source_3DDrive();
    isDEF := selection = MPSyncUtility::ID_Source_DEF();
    
        
    isexcel := RadioButtonGroupExcelOrDataManager.BoundValue() = MPSyncUtility::ID_Source_Excel();
    // set last import/ export path
    Dialog.SetUserPath( isexcel );
        
    PanelExcel.Visible( not isDEF );
    ImageExcel.Visible( not isDEF );
    SplitterWndImportObjectGroup.Visible( not isDEF );
    
    // Visibility of components in the Excel panel
    LabelPath3DDrive.Visible( is3DDrive );
    EditorImportExportPath3DDrive.Visible( is3DDrive );
    ButtonBrowse3DDrive.Visible( is3DDrive );
    LabelPath.Visible( not is3DDrive );
    EditorImportExportPath.Visible( not is3DDrive );
    ButtonBrowse.Visible( not is3DDrive );
    
    // Visibility of components in the DEF panel
    PanelDataExchangeFramework.Visible( isDEF );
    ImageDEF.Visible( isDEF );
    
    // MPSC DEF UI
    ismpscdef := RadioButtonGroupMPSCMode.BoundValue() = 'DEF';
    
    LabelMPSCExcelPath.Visible( not ismpscdef );
    EditorMPSCExcelPath.Text( ValueHolderDEFExcelPath.Value() );
    EditorMPSCExcelPath.Visible( not ismpscdef );
    ButtonMPSCBrowse.Visible( not ismpscdef );
    SelectionMPSPlan.Visible( ismpscdef );
    CheckBoxNewMPSPlanSet.Visible( ismpscdef );
    EditorMPSPlan.Visible( ismpscdef );
  *]
}
