Exemplo n.º 1
0
		protected void OnuserIdChanged(User oldValue)
		{
			System.Delegate[] events;
			EventHandler<PropertyChangedEventArgs<BlogEntry, User>> eventHandler;
			if ((object)(events = this._events) != null && (object)(eventHandler = (EventHandler<PropertyChangedEventArgs<BlogEntry, User>>)events[9]) != null)
			{
				EventHandlerUtility.InvokeEventHandlerAsync<PropertyChangedEventArgs<BlogEntry, User>>(eventHandler, this, new PropertyChangedEventArgs<BlogEntry, User>(this, "userId", oldValue, this.userId), this._propertyChangedEventHandler);
			}
			else
			{
				this.OnPropertyChanged("userId");
			}
		}
Exemplo n.º 2
0
		protected bool OnuserIdChanging(User newValue)
		{
			System.Delegate[] events;
			EventHandler<PropertyChangingEventArgs<BlogEntry, User>> eventHandler;
			if ((object)(events = this._events) != null && (object)(eventHandler = (EventHandler<PropertyChangingEventArgs<BlogEntry, User>>)events[8]) != null)
			{
				return EventHandlerUtility.InvokeCancelableEventHandler<PropertyChangingEventArgs<BlogEntry, User>>(eventHandler, this, new PropertyChangingEventArgs<BlogEntry, User>(this, "userId", this.userId, newValue));
			}
			return true;
		}