' We init view
Activity.LoadLayout("main")
AB.Initialize(pnlAB, True, True, pnlAB.Height, Me)
' We create Sql base if it is missing
If FirstTime Then
CreateDatabase
End If
PanelWithSidebar.Initialize(pnlListView, 200dip, 2, 1, 500, 500)
lvMenu.Initialize("lvMenu")
lvMenu.AddSingleLine("Indstillinger")
lvMenu.AddSingleLine("Sync Indstillinger")
lvMenu.AddSingleLine("Varmer")
lvMenu.AddSingleLine("Om")
lvMenu.SingleLineLayout.Label.TextSize = 18
lvMenu.SingleLineLayout.Label.TextColor = Colors.White
lvMenu.Color = Colors.DarkGray
lvMenu.ScrollingBackgroundColor = Colors.DarkGray
PanelWithSidebar.Sidebar.AddView(lvMenu, 100%x - 200dip, 0dip, 190dip, -1)