-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodBasicFunction.vb
34 lines (28 loc) · 1.43 KB
/
modBasicFunction.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Imports System.Text
Imports System.Security.Cryptography
Imports System.IO
Imports System.Net
Module modBasicFunction
Private iAnzahlMandantenSettings As Integer = 10
Public bAbbruch As Boolean = False
Public txtShopURL As String = ""
Public Function AcceptAllCertifications(ByVal sender As Object, ByVal certification As System.Security.Cryptography.X509Certificates.X509Certificate, ByVal chain As System.Security.Cryptography.X509Certificates.X509Chain, ByVal sslPolicyErrors As System.Net.Security.SslPolicyErrors) As Boolean
Return True
End Function
'###################################################################
'# >> Fenstertitel anzeigen
'###################################################################
Public Function setMainWindowTitle(ByVal strFormularName As String, ByVal frmForm As Form) As Boolean
Try
If strFormularName.Length > 0 Then
frmForm.Text = "JTL Newsletter - " & strFormularName & " - Mandant: " & My.Settings.mandant_letzter_name & " v." & strVersionsNummer
Else
frmForm.Text = "JTL Newsletter - Mandant: " & My.Settings.mandant_letzter_name & " v." & strVersionsNummer
End If
Return True
Catch ex As Exception
MessageBox.Show("Fehler: " & ex.Message, "setMainWindowTitle", MessageBoxButtons.OK)
Return False
End Try
End Function
End Module