| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ShowHideWarning () id:Method_DialogSmartPlan_ShowHideWarning | 
| { | 
|   #keys: '[137862.0.157055271]' | 
|   Body: | 
|   [* | 
|     // Update the warning icon | 
|     // Show/hide the warning | 
|     boundvalue := RadioButtonGroupSmartPlanDirection.BoundValue();  | 
|     smartplandirection := ifexpr( boundvalue.Length() =0, MacroPlan.SmartPlanSetting().SmartPlanDirection(), boundvalue ); | 
|     isupstream := smartplandirection = SmartPlanSetting::Upstream(); | 
|     isonestepupstream := guard( CheckboxOnlyPlanOneStepUpstream.Checked(), false ); | 
|     isuseselectedunits := CheckboxIsSelectedUnits.Checked(); | 
|      | 
|     feedback := ''; | 
|     isshowwarning := not MacroPlan::GetHasAllDefaultSmartPlanSettings( isuseselectedunits, | 
|                                                                        isonestepupstream, | 
|                                                                        isupstream, | 
|                                                                        feedback, | 
|                                                                        smartplandirection ); | 
|     ButtonWarning.Visible( isshowwarning ); | 
|     ButtonWarning.Tooltip( feedback ); | 
|   *] | 
| } |