Quintiq file version 2.0
#parent: #root
Method ShowDemandsSupplies (
  Boolean createform
) id:Method_ApplicationLibMacroPlanner_ShowDemandsSupplies
{
  #keys: '[11766.0.1649600203]'
  Body:
  [*
    //show demands
    form := Application.Frame().FindChildObject( 'FormDemandSupply' ).astype( FormDemandSupply );
    
    if( isnull( form ) )
    {
      if( createform )
      {
        newform := construct( FormDemandSupply );
        ApplicationLibMacroPlanner.ActiveWindow().Frame().ShowForm( &newform );
      }
    }
    else
    {
      form.SetFocus();
    }
  *]
}
