protected void SetPropertyChangedItem(List <PropertyChangedItem> propertyChangedList, string propertyName, object originalValue) { if (this.m_IsFilling == false) { bool hasBeenAdded = false; foreach (PropertyChangedItem item in propertyChangedList) { if (item.PropertyName == propertyName) { hasBeenAdded = true; break; } } if (hasBeenAdded == false) { PropertyChangedItem newChange = new PropertyChangedItem(propertyName, originalValue); propertyChangedList.Add(newChange); } } }
protected void SetPropertyChangedItem(List<PropertyChangedItem> propertyChangedList, string propertyName, object originalValue) { if (this.m_IsFilling == false) { bool hasBeenAdded = false; foreach (PropertyChangedItem item in propertyChangedList) { if (item.PropertyName == propertyName) { hasBeenAdded = true; break; } } if (hasBeenAdded == false) { PropertyChangedItem newChange = new PropertyChangedItem(propertyName, originalValue); propertyChangedList.Add(newChange); } } }