-
Notifications
You must be signed in to change notification settings - Fork 2
/
DigitalSettings.pas
executable file
·53 lines (41 loc) · 1.21 KB
/
DigitalSettings.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
unit DigitalSettings;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, TntForms, StdCtrls, TntStdCtrls, Buttons, TntButtons;
type
TDigitalSettingsForm = class(TTntForm)
TntBitBtn1: TTntBitBtn;
TntBitBtn2: TTntBitBtn;
TntLabel2: TTntLabel;
TntEdit1: TTntEdit;
TntLabel3: TTntLabel;
TntEdit2: TTntEdit;
procedure TntFormActivate(Sender: TObject);
procedure TntBitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
DigitalSettingsForm: TDigitalSettingsForm;
implementation
{$R *.DFM}
uses GlobalProcedures, common;
procedure TDigitalSettingsForm.TntFormActivate(Sender: TObject);
begin
DO_Windows_storage_location := GetContent(1,UserCode);
DO_BaseURL := GetContent(2,UserCode);
tntedit1.Text := DO_Windows_storage_location;
tntedit2.Text := DO_BaseURL;
tntedit1.SetFocus;
end;
procedure TDigitalSettingsForm.TntBitBtn1Click(Sender: TObject);
begin
DO_Windows_storage_location := tntedit1.Text;
DO_BaseURL := tntedit2.Text;
Save_Content(1, DO_Windows_storage_location);
Save_Content(2, DO_BaseURL);
end;
end.