32 |
|
|
33 |
|
uses |
34 |
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, |
35 |
< |
StdCtrls, IBServices; |
35 |
> |
StdCtrls, IBXServices; |
36 |
|
|
37 |
|
type |
38 |
|
|
52 |
|
private |
53 |
|
|
54 |
|
public |
55 |
< |
function ShowModal(var aDatabaseName: string; var aShutDownmode: TShutdownMode; |
55 |
> |
function ShowModal(var aDatabaseName: string; var aShutDownmode: TDBShutdownMode; |
56 |
|
var aDelay: integer): TModalResult; |
57 |
|
end; |
58 |
|
|
71 |
|
end; |
72 |
|
|
73 |
|
function TShutdownReqDlg.ShowModal(var aDatabaseName: string; |
74 |
< |
var aShutDownmode: TShutdownMode; var aDelay: integer): TModalResult; |
74 |
> |
var aShutDownmode: TDBShutdownMode; var aDelay: integer): TModalResult; |
75 |
|
begin |
76 |
|
ShutdownOptions.ItemIndex := ord(aShutDownmode); |
77 |
|
DatabaseName.Text := aDatabaseName; |
79 |
|
if Result = mrOK then |
80 |
|
begin |
81 |
|
aDelay := StrToInt(Delay.Text); |
82 |
< |
aShutDownmode := TShutdownMode(ShutdownOptions.ItemIndex); |
82 |
> |
aShutDownmode := TDBShutdownMode(ShutdownOptions.ItemIndex); |
83 |
|
aDatabaseName := DatabaseName.Text; |
84 |
|
end; |
85 |
|
end; |