Наследование: System.Collections.CollectionBase
Пример #1
0
 /// <summary>
 /// Adds the elements of another ContentFilterCollection to the end of this ContentFilterCollection.
 /// </summary>
 /// <param name="items">
 /// The ContentFilterCollection whose elements are to be added to the end of this ContentFilterCollection.
 /// </param>
 public virtual void AddRange(ContentFilterCollection items)
 {
     foreach (ContentFilter item in items)
     {
         this.List.Add(item);
     }
 }
Пример #2
0
 private void LoadFilters()
 {
     SiteConfig siteConfig = SiteConfig.GetSiteConfig(SiteConfig.GetConfigFilePathFromCurrentContext());
     contentFilters = new ContentFilterCollection(siteConfig.ContentFilters);
     checkFilterHtml.Checked = siteConfig.ApplyContentFiltersToWeb;
     checkFilterRSS.Checked = siteConfig.ApplyContentFiltersToRSS;
 }
        private void LoadFilters()
        {
            SiteConfig siteConfig = SiteConfig.GetSiteConfig(SiteConfig.GetConfigFilePathFromCurrentContext());

            contentFilters          = new ContentFilterCollection(siteConfig.ContentFilters);
            checkFilterHtml.Checked = siteConfig.ApplyContentFiltersToWeb;
            checkFilterRSS.Checked  = siteConfig.ApplyContentFiltersToRSS;
        }
Пример #4
0
 public Enumerator(ContentFilterCollection collection)
 {
     this.wrapped = ((CollectionBase) collection).GetEnumerator();
 }
Пример #5
0
 /// <summary>
 /// Adds the elements of another ContentFilterCollection to the end of this ContentFilterCollection.
 /// </summary>
 /// <param name="items">
 /// The ContentFilterCollection whose elements are to be added to the end of this ContentFilterCollection.
 /// </param>
 public virtual void AddRange(ContentFilterCollection items)
 {
     foreach (ContentFilter item in items)
     {
         this.List.Add(item);
     }
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the ContentFilterCollection class, containing elements
 /// copied from another instance of ContentFilterCollection
 /// </summary>
 /// <param name="items">
 /// The ContentFilterCollection whose elements are to be added to the new ContentFilterCollection.
 /// </param>
 public ContentFilterCollection(ContentFilterCollection items)
 {
     this.AddRange(items);
 }
Пример #7
0
 public Enumerator(ContentFilterCollection collection)
 {
     this.wrapped = ((CollectionBase)collection).GetEnumerator();
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the ContentFilterCollection class, containing elements
 /// copied from another instance of ContentFilterCollection
 /// </summary>
 /// <param name="items">
 /// The ContentFilterCollection whose elements are to be added to the new ContentFilterCollection.
 /// </param>
 public ContentFilterCollection(ContentFilterCollection items)
 {
     this.AddRange(items);
 }