📄 uflash.pas
字号:
unit uFlash;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, uGlobe;
type
TfFlash = class(TForm)
Image1: TImage;
Timer: TTimer;
lState: TLabel;
procedure TimerTimer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
function Login: Boolean;
implementation
uses uDM, uLoginPrompt;
{$R *.dfm}
function Login: Boolean;
begin
with TfFlash.Create(Application) do
try
Result := ShowModal = mrOK;
finally
Free;
end;
end;
procedure TfFlash.TimerTimer(Sender: TObject);
begin
Timer.Enabled:=False;
lState.Caption := '正在连接数据库...';
Self.Update;
if not OpenConnection(ConStr) then begin
ModalResult:=mrCancel;
Exit;
end;
lState.Caption := '正在验证用户身份...';
Self.Update;
if not LoginPrompt then begin
ModalResult:=mrCancel;
Exit;
end;
ModalResult := mrOk;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -