Last change
on this file was 2, checked in by chronos, 12 years ago |
- Přidáno: Základní kostra projektu.
- Přidáno: Knihovna synapse.
|
File size:
1.0 KB
|
Line | |
---|
1 | unit MainBox;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
---|
7 | Dialogs, StdCtrls, TFTPDaemonThread;
|
---|
8 |
|
---|
9 | type
|
---|
10 | TMainForm = class(TForm)
|
---|
11 | Log: TMemo;
|
---|
12 | BExit: TButton;
|
---|
13 | BAbout: TButton;
|
---|
14 | Label1: TLabel;
|
---|
15 | PathEdit: TEdit;
|
---|
16 | procedure BExitClick(Sender: TObject);
|
---|
17 | procedure BAboutClick(Sender: TObject);
|
---|
18 | procedure FormCreate(Sender: TObject);
|
---|
19 | private
|
---|
20 | { Private-Deklarationen }
|
---|
21 | TFTPD:TTFTPDaemonThread;
|
---|
22 | public
|
---|
23 | { Public-Deklarationen }
|
---|
24 | end;
|
---|
25 |
|
---|
26 | var
|
---|
27 | MainForm: TMainForm;
|
---|
28 |
|
---|
29 | implementation
|
---|
30 |
|
---|
31 | {$R *.dfm}
|
---|
32 |
|
---|
33 | procedure TMainForm.BAboutClick(Sender: TObject);
|
---|
34 | begin
|
---|
35 | // Show a little About-Box
|
---|
36 | Application.MessageBox('Synapse Demo Application, (c) 2003 by Christian Brosius','About...',MB_OK);
|
---|
37 | end;
|
---|
38 |
|
---|
39 | procedure TMainForm.BExitClick(Sender: TObject);
|
---|
40 | begin
|
---|
41 | // Close the TFTP-Server
|
---|
42 | Close;
|
---|
43 | end;
|
---|
44 |
|
---|
45 | procedure TMainForm.FormCreate(Sender: TObject);
|
---|
46 | begin
|
---|
47 | TFTPD := TTFTPDaemonThread.Create('0.0.0.0','69');
|
---|
48 | end;
|
---|
49 |
|
---|
50 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.