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

📄 logined.pas

📁 这是一个DELPHI7应用案例开发篇有配套程序种子光盘
💻 PAS
字号:
unit Logined;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, IWControl, IWCompEdit, IWCompLabel, IWCompButton, IWInit,
  IWAppForm;

type
  TfrmLogined = class(TFrame)
    IWLabel1: TIWLabel;
    lbUserName: TIWLabel;
    IWLabel2: TIWLabel;
    lbLoginTime: TIWLabel;
    btnLogout: TIWButton;
    btnModifyInfo: TIWButton;
    procedure btnLogoutClick(Sender: TObject);
    procedure btnModifyInfoClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

uses ServerController, IWUnit1, LoginForm;

{$R *.dfm}

procedure TfrmLogined.btnLogoutClick(Sender: TObject);
begin
    UserSession.UserName := '';
    UserSession.Password := '';

    TIWAppForm(RWebApplication.ActiveForm).Release;
    //重新显示主窗口
    TformMain.Create(RWebApplication).Show;
end;

procedure TfrmLogined.btnModifyInfoClick(Sender: TObject);
begin
    TIWAppForm(RWebApplication.ActiveForm).Release;
    TfrmUserLogin.Create(RWebApplication, True).Show;
end;

end.

⌨️ 快捷键说明

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