Quintiq file version 2.0
#parent: #root
Method Delete (
  structured[shadow[LibOpt_BT_UICustomSetting]] elements
) id:Method_DialogModelSettings_Delete
{
  #keys: '[139544.1.1248743814]'
  Body:
  [*
    traverse( elements, Elements, elem, elem.IsCreated() and elem.CanMove() )
    {
      // Delete the object.
      traverse( Dialog.Data(), CustomSetting, cs,
                cs.MethodName() = elem.MethodName()
                and cs.ArgumentType() = elem.ArgumentType() )
      {
        cs.Delete();
      }
      elem.IsCreated( false );
    }
  *]
}
