-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSettingsUnit.pas
55 lines (44 loc) · 1.28 KB
/
SettingsUnit.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
unit SettingsUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses,
uniGUIClasses, uniGUIForm, uniButton, uniLabel, uniCheckBox,
uniGUIBaseClasses, uniEdit, uniTabControl, uniPanel, uniMultiItem,
uniComboBox, uniDBComboBox, uniDBEdit;
type
TSettingsForm = class(TUniForm)
UniDBEdit1: TUniDBEdit;
UniLabel1: TUniLabel;
UniDBComboBox1: TUniDBComboBox;
UniLabel2: TUniLabel;
UniButton1: TUniButton;
procedure UniButton1Click(Sender: TObject);
procedure UniFormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
function SettingsForm: TSettingsForm;
implementation
{$R *.dfm}
uses
MainModule, ayarunit;
function SettingsForm: TSettingsForm;
begin
Result := TSettingsForm(UniMainModule.GetFormInstance(TSettingsForm));
end;
procedure TSettingsForm.UniButton1Click(Sender: TObject);
begin
UniMainModule.Settings.Post;
//UniApplication.UniSession.Alert('Please restart application service!');
Close;
end;
procedure TSettingsForm.UniFormShow(Sender: TObject);
begin
UniMainModule.Settings.Active:=True;
UniMainModule.Settings.First;
UniMainModule.Settings.Edit;
end;
end.