📄 mainunit.pas
字号:
unit MainUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
TMainForm = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Label2: TLabel;
L_CltCnt: TLabel;
L_QryCnt: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
FQueryCount: Integer;
FClientCount: Integer;
public
{ Public declarations }
procedure UpdateClientCount(Incr: Integer);
procedure IncQueryCount;
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
uses DMUnit;
procedure TMainForm.FormCreate(Sender: TObject);
begin
FQueryCount:=0;
FClientCount:=0;
L_CltCnt.Caption:='0';
L_QryCnt.Caption:='0';
end;
procedure TMainForm.UpdateClientCount(Incr: Integer);
begin
FClientCount := FClientCount + Incr;
L_CltCnt.Caption := IntToStr(FClientCount);
end;
procedure TMainForm.IncQueryCount;
begin
Inc(FQueryCount);
L_QryCnt.Caption := IntToStr(FQueryCount);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -