Reply to willyray1 (Re TreeView)
I can’t see exactly what you are getting at.... I thought the TreeView of Step 15 already did what you want. The events and markets returned by a prior getAllMarkets call will be shown in the TreeView. You restrict what is shown by assigning the eventTypeIds, countries, fromDate and toDate parameters to filter the markets. Try this code:
Here getAllMarkets is called with no filter. All available Betfair markets are returned and displayed in the TreeView.
(It a good idea to use the revised UnpackAllMarkets class for this.)
I can’t see exactly what you are getting at.... I thought the TreeView of Step 15 already did what you want. The events and markets returned by a prior getAllMarkets call will be shown in the TreeView. You restrict what is shown by assigning the eventTypeIds, countries, fromDate and toDate parameters to filter the markets. Try this code:
Code:
Private Sub bMarkets_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bMarkets.Click
Print("*** All Markets ***")
Dim oMarketsReq As New BFUK.GetAllMarketsReq
oMarketsReq.header = oHeaderUK()
With BetFairUK.getAllMarkets(oMarketsReq) 'Call the API
CheckHeader(.header)
Print("ErrorCode = " & .errorCode.ToString)
If .errorCode = BFUK.GetAllMarketsErrorEnum.OK Then
PopulateTreeView(New UnpackAllMarkets(.marketData), tvMarkets)
End If
End With
End Sub
(It a good idea to use the revised UnpackAllMarkets class for this.)


Comment