Quintiq file version 2.0
#parent: #root
Method NewRecipe (
  internal[GUIComponent] parent
) as Recipe id:Method_DialogCreateEditRecipe_NewRecipe
{
  #keys: '[110994.0.979684255]'
  Body:
  [*
    // Create recipe
    
    result := Dialog.DoModal( parent );
    newobj := null( Recipe );
    
    if( result > 0 )
    {
      Recipe::Create( MacroPlan,
                      EditorName.Text(),
                      EditorDescription.Text(),
                      false );
    }
    
    return newobj;
  *]
}
