logined.pas
来自「这是一个DELPHI7应用案例开发篇有配套程序种子光盘」· PAS 代码 · 共 50 行
PAS
50 行
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 + =
减小字号Ctrl + -
显示快捷键?