Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent,
  Scenario owner
) as Assumption id:Method_DialogCreateEditAssumption_New
{
  #keys: '[110880.3.1776658394]'
  Body:
  [*
    // Creates a new assumption
    data := owner.Assumption( relshadow );
    
    Dialog.Data( data );
    //set default value
    Dialog.SetDefaultValues();
    
    if ( Dialog.DoModal( parent ) > 0 )
    {
      data.Commit();
      
    }
    return data.WrappedInstance();
  *]
}
