forked from Militereum/Militereum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvault.pas
52 lines (42 loc) · 1.02 KB
/
vault.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
unit vault;
interface
uses
// Delphi
System.Classes,
System.SysUtils,
// FireMonkey
FMX.Controls,
FMX.Controls.Presentation,
FMX.Objects,
FMX.StdCtrls,
FMX.Types,
// web3
web3,
// project
base,
transaction;
type
TFrmVault = class(TFrmBase)
lblTitle: TLabel;
Label1: TLabel;
Label2: TLabel;
strict private
procedure SetSymbol(const value: string);
public
property Symbol: string write SetSymbol;
end;
procedure show(const chain: TChain; const tx: transaction.ITransaction; const symbol: string; const callback: TProc<Boolean>; const log: TLog);
implementation
{$R *.fmx}
procedure show(const chain: TChain; const tx: transaction.ITransaction; const symbol: string; const callback: TProc<Boolean>; const log: TLog);
begin
const frmVault = TFrmVault.Create(chain, tx, callback, log);
frmVault.Symbol := symbol;
frmVault.Show;
end;
{ TFrmVault }
procedure TFrmVault.SetSymbol(const value: string);
begin
lblTitle.Text := System.SysUtils.Format(lblTitle.Text, [value]);
end;
end.