【delphi开源代码栏目提醒】:网学会员delphi开源代码为您提供frmAddCertificateU.pas参考,解决您在frmAddCertificateU.pas学习中工作中的难题,参考学习。
unit frmAddCertificateU;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, dialogs, IBServices;
type
TfrmAddCertificate = class(TForm)
Label1: TLabel;
edID: TEdit;
OKBtn: TButton;
CancelBtn: TButton;
Label2: TLabel;
Label3: TLabel;
edKey: TEdit;
procedure OKBtnClick(Sender: TObject);
private
FIBLicensingService: TIBLicensingService;
{ Private declarations }
public
{ Public declarations }
property LicensingService : TIBLicensingService read FIBLicensingService write FIBLicensingService;
end;
implementation
{$R *.dfm}
procedure TfrmAddCertificate.OKBtnClick(Sender: TObject);
begin
with LicensingService do
begin
ID := trim(edID.text);
Key := trim(edKey.text);
try
AddLicense;
self.ModalResult := mrOK;
except
ShowMessage('The certificate could not be validated based on the information given. Please recheck the id and key information.');
end;
end;
end;
end.
上一篇:
frmAddCertificate.pas
下一篇:
让我掉下眼泪的