public void Start(NotificationObject notification_object, string property_name) { if (IsStarted) { throw new InvalidOperationException("Attempt to start PropertyUpdateSection that is already started."); } notificationObject = notification_object; propertyName = property_name; notificationObject.RaisePropertyChanging(propertyName); }
public static IDisposable StartUpdate(NotificationObject notification_object, string property_name) { currentSection.Start(notification_object, property_name); return(currentSection); }
public static IDisposable StartUpdate <T>(NotificationObject notification_object, Expression <Func <T> > propertyExpression) { var property_name = PropertySupport.ExtractPropertyName(propertyExpression); return(StartUpdate(notification_object, property_name)); }