Ejemplo n.º 1
0
 public void Cache(PropertyGridRowCacheItem item)
 {
     if (IsCached(item) == false)
     {
         _items.Add(item);
     }
 }
Ejemplo n.º 2
0
        public bool IsCached(PropertyGridRowCacheItem item)
        {
            if (_items.Contains(item))
            {
                return(true);
            }
            var items = from c in _items where c.Type.Equals(item.Type) && c.PropertyName == item.PropertyName select c;

            if (items.ToList().Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }