Parent child Listchanged problem

Parent child Listchanged problem

Old forum URL: forums.lhotka.net/forums/t/4985.aspx


Wal972 posted on Tuesday, June 17, 2008

Hi

Using Csla 3.0.4 VS 2005

I have the following code added to my create and fetch Data portal code

AddHandler mLineItems.ListChanged, AddressOf LineItemsChanged

which activates the code below

Private Sub LineItemsChanged(ByVal sender As Object, ByVal e As System.ComponentModel.ListChangedEventArgs)

If e.ListChangedType = ComponentModel.ListChangedType.ItemChanged Then

   If e.PropertyDescriptor.Name = "Amount" Or e.PropertyDescriptor.Name = "Duration" Then

      PayRecalculated()

   End If

End If

End Sub

but when it runs it get the following error / problem ?

  ListChangedType Name 'ListChangedType' is not declared. 

What does it mean and how do I fix/resolve it as it has worked for quite some time prior to this occurring

Thanks in advance

Ellie

Copyright (c) Marimer LLC