Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
        public static IDisposable StartUpdate(NotificationObject notification_object, string property_name)
        {
            currentSection.Start(notification_object, property_name);

            return(currentSection);
        }
Exemplo n.º 3
0
        public static IDisposable StartUpdate <T>(NotificationObject notification_object, Expression <Func <T> > propertyExpression)
        {
            var property_name = PropertySupport.ExtractPropertyName(propertyExpression);

            return(StartUpdate(notification_object, property_name));
        }