📄 logined.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 + -