32 |
|
|
33 |
|
uses |
34 |
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, |
35 |
< |
ExtCtrls, StdCtrls, IBServices; |
35 |
> |
ExtCtrls, StdCtrls, IBServices, IB; |
36 |
|
|
37 |
|
type |
38 |
|
|
41 |
|
TIBServiceEditorForm = class(TForm) |
42 |
|
Bevel1: TBevel; |
43 |
|
CancelBtn: TButton; |
44 |
+ |
PortNo: TEdit; |
45 |
+ |
Label1: TLabel; |
46 |
|
ServiceParams: TMemo; |
47 |
|
Label2: TLabel; |
48 |
|
Label3: TLabel; |
139 |
|
end; |
140 |
|
tempService.ServerName := ServerName.Text |
141 |
|
end; |
142 |
+ |
tempService.PortNo := PortNo.Text; |
143 |
|
tempService.Params.Assign(ServiceParams.Lines); |
144 |
|
tempService.LoginPrompt := true; |
145 |
< |
tempService.Active := true; |
146 |
< |
ShowMessage('Successful Connection'); |
147 |
< |
tempService.Active := false; |
145 |
> |
try |
146 |
> |
tempService.Active := true; |
147 |
> |
ShowMessage('Successful Connection'); |
148 |
> |
tempService.Active := false; |
149 |
> |
except on E: Exception do |
150 |
> |
ShowMessage(E.Message) |
151 |
> |
end; |
152 |
|
finally |
153 |
|
tempService.Free; |
154 |
|
Test.Enabled := true; |
169 |
|
|
170 |
|
ServerName.Text := Service.ServerName; |
171 |
|
LoginPrompt.Checked := Service.LoginPrompt; |
172 |
+ |
PortNo.Text := Service.PortNo; |
173 |
|
UserName.Text := GetParam('user_name'); |
174 |
|
Password.Text := GetParam('password'); |
175 |
|
RemoteRbtn.Checked := (Service.Protocol <> Local); |
192 |
|
end; |
193 |
|
Service.Params := ServiceParams.Lines; |
194 |
|
Service.LoginPrompt := LoginPrompt.Checked; |
195 |
+ |
Service.PortNo := PortNo.Text; |
196 |
|
Result := True; |
197 |
|
end; |
198 |
|
end; |
253 |
|
|
254 |
|
|
255 |
|
end. |
247 |
– |
|