MainForm
MainForm is the single form implementing the SPA which is created and shown after a successful login (or if no LoginForm exists). In general, MainForm is the Application Form used to navigate to other forms using menus or other navigation tools. MainForm is automatically created when a new project is created. Each Web session has its own private copy of MainForm and closing a MainForm will terminate the session.

MainForm is registered in the initialization section of the unit so that uniGUI can distinguish it from other forms.
initialization
RegisterAppFormClass(TMainForm);
end.