Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. TEstado = class
  2. FUF: string;
  3. end;
  4.  
  5. TCidade = class
  6. FNome: string;
  7. FEstado: TEstado;
  8. end;
  9.  
  10. procedure TForm1.AdapterBindSource2CreateAdapter(Sender: TObject;
  11. var ABindSourceAdapter: TBindSourceAdapter);
  12.  
  13. begin
  14.  
  15. FLista := TObjectList<TPessoa>.Create;
  16. FLista.Add(TPessoa.Create('Filipe', 25, 'filipe@email.com'));
  17. FLista.Add(TPessoa.Create('Cíntia', 27, 'cintia@email.com'));
  18. FLista.Add(TPessoa.Create('Julio', 32, 'julio@email.com'));
  19. ABindSourceAdapter := TListBindSourceAdapter<TPessoa>.Create(Self, FLista);
  20.  
  21. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement