Skip to content

Commit

Permalink
Removing check for team tournaments for now until Bandai works on it.
Browse files Browse the repository at this point in the history
  • Loading branch information
retched committed Sep 2, 2022
1 parent acc0bc2 commit 65d482b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 8 additions & 9 deletions TCG+ Registration Manager/File Handling.vb
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@

' Skip this line, this is either a header OR the instruction row from Bandai.
If intLineCount = 0 Then
If currentRow.Any(Function(f) f.Contains("- 3")) Then
intPlayers = 3
ElseIf currentRow.Any(Function(f) f.Contains("- 2")) Then
intPlayers = 2
Else
intPlayers = 1
End If
' TODO: When Bandai releases info about team tournaments, fix this.
'If currentRow.Any(Function(f) f.Contains("- 3")) Then
' intPlayers = 3
'ElseIf currentRow.Any(Function(f) f.Contains("- 2")) Then
' intPlayers = 2
'Else intPlayers = 1
'End If
intPlayers = 1
End If

intLineCount += 1
Expand Down Expand Up @@ -227,8 +228,6 @@
' If the incoming name is blank but the existing name is not, DO NOT UPDATE
target.SetElementValue("MembershipNo", strMemberID)
target.SetElementValue("MembershipName", strMemberName)

' TODO: How to get the current element value
End If

xdoc.Save(Application.StartupPath + "\AllPlayers.xml")
Expand Down
16 changes: 9 additions & 7 deletions TCG+ Registration Manager/frmMainMenu.vb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
If (OpenFileDialogCSV.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK) Then
Dim FileName As String = OpenFileDialogCSV.FileName

' TODO: Check for Duos or Trios Import Form
' First Row will contain a "- 1", "- 2", or "- 3"

Using csvDoc As New FileIO.TextFieldParser(FileName)
Expand All @@ -63,14 +62,17 @@

If firstRow(0) = "Team ID" Then
' Skip this line, this is either a header OR the instruction row from Bandai.
If firstRow.Any(Function(f) f.Contains("- 3")) Then
intPlayers = 3
' TODO: When Bandai fixes team tournaments, undo this.
'If firstRow.Any(Function(f) f.Contains("- 3")) Then
' intPlayers = 3

ElseIf firstRow.Any(Function(f) f.Contains("- 2")) Then
intPlayers = 2
'ElseIf firstRow.Any(Function(f) f.Contains("- 2")) Then
' intPlayers = 2

Else intPlayers = 1
End If
'Else intPlayers = 1
'End If

intPlayers = 1
End If

Select Case intPlayers
Expand Down

0 comments on commit 65d482b

Please sign in to comment.