limj
2023-10-24 93652435728de839582440eefd5122c281181d35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Quintiq file version 2.0
#parent: TabPage1/CalendarEditor
Response OnClick () inherited id:Response_TabPage1_menuEditInterval_OnClick
{
  #keys: '[558.1.836944]'
  BaseType: 'Response_TabPage1_menuEditInterval_OnClick'
  Body:
  [*
    // Overridden: Edit a calendar event
    participation := selection.astype( LibCal_ExplicitTimeInterval ).Participation();
    
    LibCal_GlobalState.EditEventOrSubscription( this, participation );
  *]
  DefinitionID: 'Responsedef_TabPage1_CalendarEditor_Menu_OnClick'
  Initiator: 'menuEditInterval'
  Precondition:
  [*
    retVal := selection.istype( LibCal_ExplicitTimeInterval );
    if( retVal = true )
    {
      participation := selection.astype( LibCal_ExplicitTimeInterval ).Participation();
      retVal := LibCal_GlobalState.CheckIsEvent( participation );
    }
    return retVal;
  *]
}