⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uflash.pas

📁 Delphi学籍管理程序,以Delphi7.0为前台开发工具
💻 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 + -