Quintiq file version 2.0
#parent: #root
Method EditCurrency (
  Currency_MP selection,
  internal[GUIComponent] parent
) id:Method_DialogCreateEditCurrency_EditCurrency
{
  #keys: '[11660.0.354467903]'
  Body:
  [*
    // Edit currency
    
    data := shadow( selection );
    
    Dialog.Data( data );
    result := this.DoModal( parent );
    
    if ( result > 0 )
    {
      selection.Update( EditorID.Text(), // ID is read only, the changes wont be applied
                        data.Name(),
                        data.Symbol(),
                        data.IsBase(),
                        false );
    }
  *]
}
