Quintiq file version 2.0
#parent: Toolbar/ButtonOk
Response OnClick () id:Response_Toolbar_ButtonOk_OnClick
{
  #keys: '[11660.0.62385711]'
  Body:
  [*
    // Apply changes
    
    Dialog.ApplyChanges();
    Dialog.SetAttributesAfterOnApplyData();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return not isnull( Dialog.Data() )  //the only time Dialog.Data null check is required is when this dlg is opened for view initialization. 
           and LaneLeg::ValidateInput( feedback,
                                       sanitycheckfeedback,
                                       MacroPlan,
                                       Dialog.Data().IsEnabled(),
                                       CheckBoxHasStart.Checked(),
                                       GUIDateTimeSelectorStart.DateTime().Date(),
                                       CheckBoxHasEnd.Checked(),
                                       GUIDateTimeSelectorEnd.DateTime().Date(),
                                       CheckBoxHasUserPreprocessingTime.Checked(),
                                       GUIDurationSelectorPreprocessingTime.Duration(),
                                       ApplicationLibMacroPlanner.FormatStringToReal( EditorCO2Emission.Text() ),
                                       Dialog.Data().WrappedInstance()
                                     );
  *]
}
