1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Private Sub TestMethod()
Dim Championat As Dictionary(Of int, List(Of Match) = New Dictionary(Of int, List(Of Match)
Dim lstMatch As List(Of Match) = new List(Of Match)
lstMatch.Add(CreateNewMatch())
lstMatch.Add(CreateNewMatch())
Championat.Add(1,lstMatch)
Dim lstMatch As List(Of Match) = new List(Of Match)
lstMatch.Add(CreateNewMatch())
Championat.Add(2,lstMatch)
AfficheJournee(1,championat)
End Sub
Private Sub AfficheJournee(jour As Integer,Championat As Dictionary(Of int, List(Of Match) championat )
If Not championat.ContainsKey(journee) Then
// Pas de journee
Return
Else
For Each Match unMatch in championat(journee)
Afficher(unMatch)
Next
End Sub |
Partager