/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/Delphi/Root.pas
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/Delphi/Root.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 9 months ago) by torben
File size: 2293 byte(s)
Added tpsystools component
1 (* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is TurboPower SysTools
15 *
16 * The Initial Developer of the Original Code is
17 * TurboPower Software
18 *
19 * Portions created by the Initial Developer are Copyright (C) 1996-2002
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * ***** END LICENSE BLOCK ***** *)
25
26 unit Root;
27
28 interface
29
30 uses
31 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
32 StdCtrls;
33
34 type
35 TRootForm = class(TForm)
36 ObserverBtn: TButton;
37 MediatorBtn: TButton;
38 ChainBtn: TButton;
39 SingletonBtn: TButton;
40 ExitBtn: TButton;
41 procedure ObserverBtnClick(Sender: TObject);
42 procedure ChainBtnClick(Sender: TObject);
43 procedure MediatorBtnClick(Sender: TObject);
44 procedure SingletonBtnClick(Sender: TObject);
45 procedure ExitBtnClick(Sender: TObject);
46 private
47 { Private declarations }
48 public
49 { Public declarations }
50 end;
51
52 var
53 RootForm: TRootForm;
54
55 implementation
56
57 uses Chain, Medtr, Observer, Singlton;
58
59
60 {$R *.DFM}
61
62 procedure TRootForm.ObserverBtnClick(Sender: TObject);
63 begin
64 Application.CreateForm(TObserverForm, ObserverForm);
65 ObserverForm.ShowModal;
66 end;
67
68 procedure TRootForm.ChainBtnClick(Sender: TObject);
69 begin
70 Application.CreateForm(TChainForm, ChainForm);
71 ChainForm.ShowModal;
72 end;
73
74 procedure TRootForm.MediatorBtnClick(Sender: TObject);
75 begin
76 Application.CreateForm(TMediatorForm, MediatorForm);
77 MediatorForm.ShowModal;
78 end;
79
80 procedure TRootForm.SingletonBtnClick(Sender: TObject);
81 begin
82 Application.CreateForm(TSingletonForm, SingletonForm);
83 SingletonForm.ShowModal;
84 end;
85
86 procedure TRootForm.ExitBtnClick(Sender: TObject);
87 begin
88 Close;
89 end;
90
91 end.

  ViewVC Help
Powered by ViewVC 1.1.20