program BackButton;
uses
Forms,
IWMain,
ServerController in 'ServerController.pas' {IWServerController: TIWServerController},
Main in 'Main.pas' {MainForm: TIWFormModuleBase},
Second in 'Second.pas' {SecondForm: TIWAppForm},
Third in 'Third.pas' {ThirdForm: TIWAppForm};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TformIWMain, formIWMain);
Application.Run;
end.
////////////////////////////////////////
unit Main;
procedure TMainForm.butnLoginClick(Sender: TObject);
begin
if (editUsername.Text = 'demo') and (editPassword.Text = 'demo') then begin
TSecondForm.Create(WebApplication).Show;
end else begin
lablLoginStatus.Visible := True;
end;
end;
initialization
TMainForm.SetAsMainForm
end.
////////////////////////////////////////////////
unit Second;