-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathudConnect.pas
42 lines (34 loc) · 961 Bytes
/
udConnect.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
{****************************************************************
$Id: udConnect.pas,v 1.2 2006-11-30 10:30:41 dale Exp $
****************************************************************}
unit udConnect;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ufrConnect, StdCtrls;
type
TdConnect = class(TForm)
bOK: TButton;
bCancel: TButton;
cbSetDefault: TCheckBox;
frConnect: TfrConnect;
end;
function AskConnectParams: Boolean;
implementation
{$R *.DFM}
uses ConsVarsTypes;
function AskConnectParams: Boolean;
begin
with TdConnect.Create(Application) do
try
frConnect.ConnectParams := ActiveConParams;
Result := ShowModal=mrOK;
if Result then begin
ActiveConParams := frConnect.ConnectParams;
if cbSetDefault.Checked then DefConParams := frConnect.ConnectParams;
end;
finally
Free;
end;
end;
end.