I have two ObservableCollections, ocOrganization and ocVendoers. The Organization object has a ReadOnly property to signal whether an Organization is also a Vendor:
Public ReadOnly Property IsVendor As Boolean
Get
Dim vdr As Vendor = ocVendors.FirstOrDefault(Function(v) v.OrganizationID = clsOrganizationID)
Return vdr IsNot Nothing
End Get
End Property
There is a button on the wpf window that displays each organization that allows the user to make an organization also a vendor. When clicked, I want that ReadOnly property to be reevaluated. To do that I have created this event handler:
Public Sub VendorsCollectionChanged(sender As Object, e As NotifyCollectionChangedEventArgs)
????????
End Sub
So I've got all the pieces in place but I don't know what to replace the "????????" with in the above Sub in order to wire them together. Or is there a different approach altogether that I should be using?
