unit UTMaster;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, UTData, UTDAavdBL, StdCtrls;
type
TForm1 =
class(TForm)
StringGrid1: TStringGrid;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
add: TEdit;
wo: TEdit;
was: TEdit;
Button6: TButton;
at: TEdit;
delete: TEdit;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
d:TDAavdBL;
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
begin
d:=TDAavdBL.create;
d.Create;
StringGrid1.ColCount:=d.length;
end;
procedure TForm1.FormDestroy(Sender: TObject);
begin
d.Destroy;
d.free;
end;
// hier kommen noch mehr prozeduren
procedure TForm1.Button3Click(Sender: TObject);
VAR i:integer;
begin
d.add(add.text);
FOR i:=1
TO d.length
DO
StringGrid1.Cells[i,0]:=d.at(i);
end;
end.