Quintiq file version 2.0
#parent: Toolbar/ButtonOk
Response OnClick () id:Response_Toolbar_ButtonOk_OnClick
{
  #keys: '[11660.0.63827056]'
  Body:
  [*
    // Apply changes
    
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return UnitAvailability::ValidateInput( feedback,
                                            sanitycheckfeedback,
                                            SelectionUnit.Data(),
                                            GUIStartDateTimeSelector.DateTime(),
                                            StringSelectionTimeUnit.BoundValue(),
                                            ApplicationLibMacroPlanner.FormatStringToReal( EditorEfficiency.Text() ),
                                            ApplicationLibMacroPlanner.FormatStringToReal( EditorAllocation.Text() ),
                                            SelectionShiftPattern.Data(),
                                            ApplicationLibMacroPlanner.FormatStringToReal( EditorMinimumLoadThreshold.Text() ),
                                            ApplicationLibMacroPlanner.FormatStringToReal( EditorMaxLoadPercentage.Text() ),
                                            ApplicationLibMacroPlanner.FormatStringToNumber( EditorNrOfUnitsOpen.Text() ),
                                            Dialog.Data().WrappedInstance(),
                                            true
                                          );
  *]
  UserRequiresReadWrite: true
}
