source: trunk/Packages/synapse/source/demo/TFTPServer/MainBox.pas

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 
1unit MainBox;
2
3interface
4
5uses
6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
7 Dialogs, StdCtrls, TFTPDaemonThread;
8
9type
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
26var
27 MainForm: TMainForm;
28
29implementation
30
31{$R *.dfm}
32
33procedure TMainForm.BAboutClick(Sender: TObject);
34begin
35 // Show a little About-Box
36 Application.MessageBox('Synapse Demo Application, (c) 2003 by Christian Brosius','About...',MB_OK);
37end;
38
39procedure TMainForm.BExitClick(Sender: TObject);
40begin
41 // Close the TFTP-Server
42 Close;
43end;
44
45procedure TMainForm.FormCreate(Sender: TObject);
46begin
47 TFTPD := TTFTPDaemonThread.Create('0.0.0.0','69');
48end;
49
50end.
Note: See TracBrowser for help on using the repository browser.