コード例 #1
0
 public CacheItem()
 {
     cacheHost = null;
     checkState = System.Windows.Forms.CheckState.Checked;
     Url = string.Empty;
     Local = string.Empty;
     ResponseHeaders = new List<CacheHeader>();
     //new NameValueCollection();
     //new Dictionary<string, string>();
     Creation = DateTime.Now;
 }
コード例 #2
0
        public void OnAddCacheViewAction(IEnumerable<CacheItem> items)
        {

            foreach (var item in items)
            {
                if (!View.CacheIndex.ContainsKey(item.Host))
                {
                    CacheHost host = new CacheHost() { Host = item.Host };
                    item.CacheHost = host;
                    View.CacheIndex[item.Host] = host;
                    View.TreeListViewCache.AddObject(host);
                }
                View.CacheIndex[item.Host].Items[item.Url] = item;
                View.CacheIndex[item.Host].CheckStateUpdate();
            }
            View.TreeListViewCache.RebuildAll(true);

        }