Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim usctrl As UltimateServersControl
Dim ftpID As String = "BSEU4D8SJD2G3KO" ' You must know the unique id of the server in Ultimate Servers.
' Click on a server and use INFORMATION in the popup to get this ID.
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("main")
usctrl.Initialize("US",True)
End Sub
Sub Activity_Resume
usctrl.Register
End Sub
Sub Activity_Pause (UserClosed As Boolean)
usctrl.Unregister
End Sub
Sub ToggleFTP_CheckedChange(Checked As Boolean)
Log("ToggleFTP_CheckedChange("&Checked&")")
If Checked Then
usctrl.startserver(ftpID)
Else
usctrl.stopserver(ftpID)
End If
End Sub
Sub US_Response(data_type As String, server_iniqueid As String)
Log("US_Response("&data_type&","&server_iniqueid&")")
End Sub