Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Public smc As SideMenuController 'iSideMenu Lib
End Sub
Private Sub Application_Start (Nav As NavigationController)
'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
NavControl = Nav
NavControl.Initialize("")
Dim lp As Page
lp.Initialize("lp")
lp.RootPanel.Color = Colors.Red
lp.RootPanel.LoadLayout("LeftMenu")
smc.Initialize(lp, NavControl, Null)
smc.OpenGesturesEnabled = False
App.KeyController = smc
NavControl.NavigationBarVisible = False
MyPage2.show(NavControl) ' this will show the login screen
End Sub