| Quintiq file version 2.0 | 
| #parent: #root | 
| Method EnableDisableComponent () id:Method_DialogCreateEditSupplySpecification_EnableDisableComponent | 
| { | 
|   #keys: '[112884.0.305207732]' | 
|   Body: | 
|   [* | 
|     // Enable disable components | 
|      | 
|     GUIDateTimeSelectorStart.Enabled( CheckBoxHasStart.Checked() ); | 
|     GUIDateTimeSelectorEnd.Enabled( CheckBoxHasEnd.Checked() ); | 
|      | 
|     if( CheckBoxHasStart.Checked() and not GUIDateTimeSelectorStart.DateTime().Date().IsFinite() ) | 
|     { | 
|       GUIDateTimeSelectorStart.DateTime( MacroPlan.Start() ); | 
|     } | 
|     if( CheckBoxHasEnd.Checked() and not GUIDateTimeSelectorEnd.DateTime().Date().IsFinite() ) | 
|     { | 
|       GUIDateTimeSelectorEnd.DateTime( MacroPlan.End() ); | 
|     } | 
|      | 
|     // EditorMaxQuantity is enabled/disabled in Dialog.EnableDisableEditorMaxQuantity | 
|   *] | 
| } |