Example #1
0
 public override bool UpdatePropertyBag(StoreObjectId itemId, IStorePropertyBag bag)
 {
     for (int i = 0; i < this.storePropertyBags.Count; i++)
     {
         if (ConversationTreeNode.RetrieveStoreObjectId(this.storePropertyBags[i]).Equals(itemId))
         {
             this.storePropertyBags[i] = bag;
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 public override List <StoreObjectId> ToListStoreObjectId()
 {
     if (this.ids == null)
     {
         this.ids = new List <StoreObjectId>();
         if (this.HasData)
         {
             foreach (IStorePropertyBag bag in this.StorePropertyBags)
             {
                 this.ids.Add(ConversationTreeNode.RetrieveStoreObjectId(bag));
             }
         }
     }
     return(this.ids);
 }
Example #3
0
 public override bool TryGetPropertyBag(StoreObjectId itemId, out IStorePropertyBag bag)
 {
     bag = null;
     if (!this.HasData || itemId == null)
     {
         return(false);
     }
     foreach (IStorePropertyBag storePropertyBag in this.StorePropertyBags)
     {
         if (itemId.Equals(ConversationTreeNode.RetrieveStoreObjectId(storePropertyBag)))
         {
             bag = storePropertyBag;
             return(true);
         }
     }
     return(false);
 }