ActiveReports 10
ListenCollection<TModel1,TModel2,TValue>(TModel1,Expression<Func<TModel1,TModel2>>,Expression<Func<TModel2,TValue>>,Action<NotifyCollectionChangedEventArgs>) Method

GrapeCity.ActiveReports.Viewer.Win.v10 Assembly > GrapeCity.Viewer.Common.Model Namespace > ActiveModelListenExtensions Class > ListenCollection Method : ListenCollection<TModel1,TModel2,TValue>(TModel1,Expression<Func<TModel1,TModel2>>,Expression<Func<TModel2,TValue>>,Action<NotifyCollectionChangedEventArgs>) Method
Syntax
'Declaration
 
Public Overloads Shared Function ListenCollection
    (Of TModel1 As {Class, INotifyPropertyChanged},
     TModel2 As {Class, INotifyPropertyChanged},
     TValue As {Class, INotifyCollectionChanged})( _
   ByVal model As TModel1, _
   ByVal getter1 As Expression(Of Func(Of TModel1,TModel2)), _
   ByVal getter2 As Expression(Of Func(Of TModel2,TValue)), _
   ByVal action As Action(Of NotifyCollectionChangedEventArgs) _
) As IDisposable
public static IDisposable ListenCollection<TModel1,TModel2,TValue>( 
   TModel1 model,
   Expression<Func<TModel1,TModel2>> getter1,
   Expression<Func<TModel2,TValue>> getter2,
   Action<NotifyCollectionChangedEventArgs> action
)
where TModel1: class, INotifyPropertyChanged
where TModel2: class, INotifyPropertyChanged
where TValue: class, INotifyCollectionChanged

Parameters

model
getter1
getter2
action

Type Parameters

TModel1
TModel2
TValue
See Also

Reference

ActiveModelListenExtensions Class
ActiveModelListenExtensions Members
Overload List