I have worked out the syntax for adding the filters to my CollectionView
我现在想知道,我如何能够在我的过滤方法中增加额外的参数。
e.g.
Public Shared Sub FilterByAge(ByVal Item As Object, ByVal e As FilterEventArgs, ByVal Age As Int32)
Dim PersonToFilter As Person = TryCast(e.Item, Person)
If Not PersonToFilter.Age = Age Then
e.Accepted = False
End If
End Sub
是否可能采用删除的办法? 我不十分熟悉他们:
任何人都可以向我指出,在VB增加多个收听器的正确方向。 附加过滤器的网络?
Thanks Ben