| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ImportExport_SetCheckBoxes ( | 
|   shadow[UserImportProfile] userprofile, | 
|   shadow[DefaultImportProfile] defaultprofile, | 
|   internal[CheckBox] scenariospeccheckbox, | 
|   internal[CheckBox] globalcheckbox | 
| ) id:Method_ApplicationLibMacroPlanner_ImportExport_SetCheckBoxes | 
| { | 
|   #keys: '[132448.0.552141273]' | 
|   Body: | 
|   [* | 
|     // Check checkbox if all import group is included | 
|     // Need two subclass due to shadow scope (base class relation not established yet) | 
|     if( not isnull( scenariospeccheckbox ) ) | 
|     { | 
|       checkAllScenario := scenariospeccheckbox.Checked(); | 
|        | 
|       if( not isnull( defaultprofile ) ) | 
|       {  | 
|         checkAllScenario := forall( defaultprofile, ImportObjectGroupInDefaultProfile, e, | 
|                                     not e.ImportObjectGroup().IsGlobal(), | 
|                                     e.IsIncludeInImportExport() );                                      | 
|       }    | 
|       else | 
|       { | 
|         checkAllScenario := forall( userprofile, ImportObjectGroupInUserProfile, e, | 
|                                     not e.ImportObjectGroup().IsGlobal(), | 
|                                     e.IsIncludeInImportExport() ); | 
|       } | 
|                           | 
|       scenariospeccheckbox.Checked( checkAllScenario ); | 
|     }   | 
|      | 
|     // There is no global for user profile | 
|     if( not isnull( globalcheckbox ) | 
|         and not isnull( defaultprofile ) ) | 
|     { | 
|       checkAllGlob := forall( defaultprofile, ImportObjectGroupInDefaultProfile, e, | 
|                               e.ImportObjectGroup().IsGlobal(), | 
|                               e.IsIncludeInImportExport() );                             | 
|                                  | 
|       globalcheckbox.Checked( checkAllGlob ); | 
|     } | 
|   *] | 
| } |