MsgBox("You must submit a username!",MsgBoxStyle.Exclamation)
ExitSub
ElseIfdateCalendar.SelectionRange.End=NothingThen
MsgBox("You must select a valid trial period!",MsgBoxStyle.Exclamation)
ExitSub
ElseIfcomboCutoff.Text=NothingThen
MsgBox("You must provide a valid cutoff time!",MsgBoxStyle.Exclamation)
ExitSub
EndIf
frmResult.Show()
'Me.Hide()
DimsNicknameAsString=txtNickname.Text
DimsCutoffAsString=comboCutoff.SelectedItem
DimsWeekAsString=""
IflblWeeks.Text="(need update)"Then
sWeek=lblPeriod.Text
Else
sWeek=lblWeeks.Text
EndIf
DimsPeriodDaysAsString=lblPeriod.Text
DimsPeriodFromAsString=lblPeriod2.Text
' den ganzen text einfügen mit den neuen variablen
frmResult.TextBox1.Text=""
frmResult.TextBox1.AppendText("Hi there "+sNickname+"!"+vbNewLine+vbNewLine)
frmResult.TextBox1.AppendText("You are now officially on a "+sWeek+" trial starting on "+Format(dateCalendar.SelectionRange.Start,"dd.MM.yyyy")+" (Expected end date: "+Format(dateCalendar.SelectionRange.End,"dd.MM.yyyy")+")."+vbNewLine)
frmResult.TextBox1.AppendText("It is time for you to put on your WiWR (mind the R<--) tags."+vbNewLine)
frmResult.TextBox1.AppendText("During this "+sWeek+" week trial we, the recruitment team, expect you to stay active in both our forum and server."+vbNewLine)
frmResult.TextBox1.AppendText("Note: being an active soldier might result in having your trial cut by 1 week, meaning your trial ends after "+iCutoff.ToString+" week(s)."+vbNewLine)
EndIf
'Else
' If sCutoff = "yes" Then
'MsgBox("Cutoff not possible!" + vbNewLine + "Not enough days.", MsgBoxStyle.Information)
'On Error Resume Next
'End If
EndIf
frmResult.TextBox1.AppendText("If for some reason you are away during your trial please let us know (for example work, holidays or school)."+vbNewLine+vbNewLine)
frmResult.TextBox1.AppendText("You also have to apply for this platoon: http://battlelog.battlefield.com/bf3/platoon/2832655391843860729/"+vbNewLine+"Its the official recruitment platoon."+vbNewLine+vbNewLine)
frmResult.TextBox1.AppendText("Good luck on the trial, greetings"+vbNewLine+vbNewLine+"Recruitment team"+vbNewLine+vbNewLine+vbNewLine)
frmResult.TextBox1.AppendText("If for some reason you have any questions/problems feel free to ask them here, in the Recruits+ forum, on battlelog, on Teamspeak or on X-Fire!"+vbNewLine)
frmResult.TextBox1.AppendText("The Recruits+ forum is only visible to Recruits and clan members. No public visitor will ever see that section."+vbNewLine+vbNewLine)
'Select Case MessageBox.Show("You will now be taken to the Wake Island Warriors website" & vbNewLine & "to send me a private message." & vbNewLine & "Please use a crucial subject line!" & vbNewLine & vbNewLine & "Please also note, the more information I get about an error," & vbNewLine & "the easier it will be to fix it.", "You are beeing forwarded", MessageBoxButtons.OKCancel, MessageBoxIcon.Information)