Public Sub Show(info As Map,c As Client)
checklistsize
If B4XPages.MainPage.OpenForm.Size>0 Then
For Each s As Client In B4XPages.MainPage.OpenForm.Keys
If s = c Then
B4XPages.MainPage.OpenForm.Get(s).As(Form).Close
B4XPages.MainPage.OpenForm.Remove(s)
checklistsize
B4XPages.MainPage.OpenForm.Put(s,Svcfrm) 'add form with client astream as key
B4XPages.MainPage.OpenForm.get(s).As(Form).Initialize("form",600,400)
B4XPages.MainPage.OpenForm.get(s).As(Form).RootPane.LoadLayout("ServicesLay")
B4XPages.MainPage.OpenForm.get(s).As(Form).Title="Services Manager "
B4XPages.MainPage.OpenForm.get(s).As(Form).Icon= fx.LoadImage(File.DirAssets, "svr.png")
B4XPages.MainPage.OpenForm.get(s).As(Form).Show
End If
Next
Else
B4XPages.MainPage.OpenForm.Put(c,Svcfrm) 'add form with client astream as key
B4XPages.MainPage.OpenForm.get(c).As(Form).Initialize("form",600,400)
B4XPages.MainPage.OpenForm.get(c).As(Form).RootPane.LoadLayout("ServicesLay")
B4XPages.MainPage.OpenForm.get(c).As(Form).Title="Services Manager "
B4XPages.MainPage.OpenForm.get(c).As(Form).Icon= fx.LoadImage(File.DirAssets, "svr.png")
B4XPages.MainPage.OpenForm.get(c).As(Form).Show
End If
fillList(info) 'fill information
checklistsize
End Sub