Inheritance: System.Collections.CollectionBase
Esempio n. 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);
     }
 }
 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;
        }
Esempio n. 4
0
 public Enumerator(ContentFilterCollection collection)
 {
     this.wrapped = ((CollectionBase) collection).GetEnumerator();
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
 }
Esempio n. 7
0
 public Enumerator(ContentFilterCollection collection)
 {
     this.wrapped = ((CollectionBase)collection).GetEnumerator();
 }
Esempio n. 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);
 }