Quintiq file version 2.0
#parent: #root
Method New (
  LibCal_EventType parent,
  FormEventType formEventType
) id:Method_DialogCreateEditEventType_New
{
  #keys: '[415136.0.725511525]'
  Body:
  [*
    // To create a new product
    owner := LibCal_GlobalState.dhGlobalCalendarRegistry().Data();
    obj := owner.EventType( relshadow
                                ,ID := ""
                                ,Parent           := parent
                               );
    
    dhDialogData.Data( &obj );
    
    dhForm.Data( formEventType );
    
    Form.SetDefaultValue( owner );
    
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
