-
Notifications
You must be signed in to change notification settings - Fork 2
/
TournamentView.pas
70 lines (58 loc) · 1.6 KB
/
TournamentView.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
unit TournamentView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Knockoff.Binding;
type
TTournamentViewForm = class(TForm)
[Bind('Value', 'SemiFinalOne.HomeScore')]
Edit1: TEdit;
[Bind('Value', 'SemiFinalOne.AwayScore')]
Edit2: TEdit;
[Bind('Value', 'SemiFinalTwo.HomeScore')]
Edit3: TEdit;
[Bind('Value', 'SemiFinalTwo.AwayScore')]
Edit4: TEdit;
[Bind('Enabled', 'Finale.CanPlay')]
[Bind('Value', 'Finale.HomeScore')]
Edit5: TEdit;
[Bind('Enabled', 'Finale.CanPlay')]
[Bind('Value', 'Finale.AwayScore')]
Edit6: TEdit;
[Bind('Text', 'SemiFinalOne.HomeTeam')]
Label1: TLabel;
[Bind('Text', 'SemiFinalOne.AwayTeam')]
Label2: TLabel;
[Bind('Text', 'SemiFinalTwo.HomeTeam')]
Label3: TLabel;
[Bind('Text', 'SemiFinalTwo.AwayTeam')]
Label4: TLabel;
[Bind('Text', 'Finale.HomeTeam')]
Label5: TLabel;
[Bind('Text', 'Finale.AwayTeam')]
Label6: TLabel;
[Bind('Text', 'Finale.Winner')]
Label7: TLabel;
[Bind('Click', 'SemiFinalOne_SaveScore')]
Button1: TButton;
[Bind('Click', 'SemiFinalTwo_SaveScore')]
Button2: TButton;
[Bind('Click', 'Finale_SaveScore')]
Button3: TButton;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
TournamentViewForm: TTournamentViewForm;
implementation
{$R *.dfm}
uses
TournamentViewModel;
procedure TTournamentViewForm.FormCreate(Sender: TObject);
begin
ApplyBindings(Self, TTournamentViewModel.Create);
end;
end.