Quintiq file version 2.0
#parent: Toolbar/ButtonOk
Response OnClick () id:Response_Toolbar_ButtonOk_OnClick
{
  #keys: '[11660.0.59739855]'
  Body:
  [*
    // Update component and apply data
    Dialog.UpdatePeriodAlignment();
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return PeriodSpecification_MP::ValidateInput( feedback,
                                                  sanitycheckfeedback,
                                                  EditorID.Text(),
                                                  MacroPlan,
                                                  Dialog.Data().WrappedInstance(),
                                                  StringSelectionTimeUnit.Text(),
                                                  ApplicationLibMacroPlanner.FormatStringToNumber( EditorNrOfTimeUnit.Text() ),
                                                  GUIDateTimeSelectorPeriodAlignment.DateTime(),
                                                  ApplicationLibMacroPlanner.FormatStringToNumber( EditorNrOfHistoricalPeriod.Text() ),
                                                  ApplicationLibMacroPlanner.FormatStringToNumber( EditorNrOfFuturePeriod.Text() ),
                                                  true );
  *]
}
