예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
         }
     }
 }