Exemplo n.º 1
0
 protected override void OnCollectionItemPropertyChanged(CollectionItemPropertyChangedEventArgs e)
 {
     if (!_notificationSuspended)
     {
         base.OnCollectionItemPropertyChanged(e);
         return;
     }
     if (e == null)
     {
         return;
     }
     foreach (var propertyNames in e.PropertyNames)
     {
         foreach (var propertyName in propertyNames)
         {
             _itemChanges.Add(new KeyValuePair <object, string>(propertyNames.Key, propertyName));
         }
     }
 }
 protected virtual void OnCollectionItemPropertyChanged(CollectionItemPropertyChangedEventArgs e)
 {
     CollectionItemPropertyChanged?.Invoke(this, e);
 }
Exemplo n.º 3
0
		void Images_CollectionItemPropertyChanged(object sender, CollectionItemPropertyChangedEventArgs e)
		{
			this.InvokeIfNeeded(() =>
			{
				foreach (var group in e.PropertyNames)
				{
					int index = _images.IndexOf((ImageReference)group.Key);
					if (index >= 0)
						dgvImages.UpdateCellValue(1, index);
				}
			});
		}