Esempio n. 1
0
 public static PropertyChangeWatcher AddWatcher(this INotifyPropertyChanged source, IList <string> propertyNames,
                                                Action handler)
 {
     return(PropertyChangeWatcher.AddWatcher(source, propertyNames, handler));
 }
Esempio n. 2
0
 public static PropertyChangeWatcher AddWatcher <TEntity, TProperty>(this INotifyPropertyChanged source,
                                                                     Expression <Func <TEntity, TProperty> > propertyExpression, Action handler)
 {
     return(PropertyChangeWatcher.AddWatcher(source, new[] { propertyExpression.GetPropertyName() }, handler));
 }
Esempio n. 3
0
 public static PropertyChangeWatcher AddWatcher(this INotifyPropertyChanged source, string propertyName1,
                                                string propertyName2, Action handler)
 {
     return(PropertyChangeWatcher.AddWatcher(source, new[] { propertyName1, propertyName2 }, handler));
 }