Quintiq file version 2.0
#parent: #root
Method NewProductLevel (
  internal[GUIComponent] parent,
  MacroPlan owner
) as ProductLevel_MP id:Method_DialogCreateEditProductLevel_NewProductLevel
{
  #keys: '[11660.0.432326060]'
  Body:
  [*
    // Create product level
    result := Dialog.DoModal( parent );
    newobj := null( ProductLevel_MP );
    
    if( result > 0 )
    {
      newobj := ProductLevel_MP::Create( EditorName.Text(), CheckBoxIsProductCategory.Checked(), MacroPlan, false );
    }
    
    return newobj;
  *]
}
