-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.vb
47 lines (40 loc) · 2.04 KB
/
debug.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
35
36
37
38
39
40
41
42
43
44
45
46
47
Module debug
'#################################################
'# >> getSettings
'# Alle Settings durchgehen
'#################################################
Public Function getSettings() As Boolean
Try
For i As Integer = 0 To My.Settings.db_username.Count
MessageBox.Show(My.Settings.db_datenbankname(i), "Einstellung " & i, MessageBoxButtons.OK, MessageBoxIcon.Information)
debug.Print(My.Settings.db_datenbankname(i) & " - " & " bei Einstellung " & i)
Next
Catch ex As Exception
MessageBox.Show("Fehler bei: " & ex.Message, "getSettings()", MessageBoxButtons.OK, MessageBoxIcon.Information)
End Try
End Function
Public Function setInitSettingsByPosition(ByVal iPosition As Integer) As Boolean
Try
My.Settings.db_server(iPosition) = "LXWServer"
My.Settings.db_datenbankname(iPosition) = "Mandant_4"
My.Settings.db_username(iPosition) = "sa"
My.Settings.db_passwort(iPosition) = "lucky2000"
My.Settings.template_pfad(iPosition) = "C:\Entwicklung\JTL Newsletter\JTL Newsletter\bin\Debug\Newsletter Vorlagen\Beispiel Vorlage.html"
My.Settings.template_betreff(iPosition) = "JTL Newsletter"
My.Settings.email_absende_name(iPosition) = "Bubblyfly"
My.Settings.email_pop_port(iPosition) = "21"
My.Settings.email_pop3_before_smtp(iPosition) = "false"
My.Settings.email_pwd(iPosition) = ""
My.Settings.email_smtp(iPosition) = ""
My.Settings.email_smtp_port(iPosition) = ""
My.Settings.email_username(iPosition) = ""
Return True
Catch ex As Exception
MessageBox.Show("Fehler bei: " & ex.Message, "setInitSettingsByPosition()", MessageBoxButtons.OK, MessageBoxIcon.Information)
Return False
End Try
End Function
Private Function Print(ByVal p1 As String) As Integer
Throw New NotImplementedException
End Function
End Module