testapp.pas

来自「autoupdate 1.02 source code」· PAS 代码 · 共 47 行

PAS
47
字号
unit testapp;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, AutoUpdate;   

type
  TForm1 = class(TForm)
    AutoUpdate1: TAutoUpdate;
    Button1: TButton;
    Memo1: TMemo;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure AutoUpdate1DebugMethod(S: String);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
   AutoUpdate1.CheckForUpgrade(True);
end;

procedure TForm1.AutoUpdate1DebugMethod(S: String);
begin
   memo1.lines.add(s);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
   Label1.Caption := AutoUpdate1.Version;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?