-
Notifications
You must be signed in to change notification settings - Fork 1
/
KeyringLoadForm.pas
59 lines (48 loc) · 1.27 KB
/
KeyringLoadForm.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
56
57
58
59
unit KeyringLoadForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TfrmKeyringLoad = class(TForm)
lblPublicKeyring: TLabel;
editPubKeyring: TEdit;
lblSecretKeyring: TLabel;
editSecKeyring: TEdit;
btnBrowsePub: TButton;
btnBrowseSec: TButton;
btnOK: TButton;
btnCancel: TButton;
OpenDialog: TOpenDialog;
procedure btnBrowsePubClick(Sender: TObject);
procedure btnBrowseSecClick(Sender: TObject);
procedure btnOKClick(Sender: TObject);
procedure btnCancelClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmKeyringLoad: TfrmKeyringLoad;
implementation
{$R *.DFM}
procedure TfrmKeyringLoad.btnBrowsePubClick(Sender: TObject);
begin
if OpenDialog.Execute then
editPubKeyring.Text := OpenDialog.Filename;
end;
procedure TfrmKeyringLoad.btnBrowseSecClick(Sender: TObject);
begin
if OpenDialog.Execute then
editSecKeyring.Text := OpenDialog.Filename;
end;
procedure TfrmKeyringLoad.btnOKClick(Sender: TObject);
begin
ModalResult := mrOk;
end;
procedure TfrmKeyringLoad.btnCancelClick(Sender: TObject);
begin
ModalResult := mrCancel;
end;
end.