Example #1
0
        /// <summary>
        /// Initialize a new instance of the ConsumerView class.
        /// </summary>
        /// <param name="consumerCollection">The raw collection of consumers.</param>
        public ConsumerView(ConsumerCollection consumerCollection)
            : base(consumerCollection)
        {
            // This will evaluation several filters to see if a consumer should be in the view.
            this.Filter = this.ProcessFilterList;

            // This lets us know that a new filter has been added to the collection so we can refresh the view.
            this.filterList.CollectionChanged += this.OnFilterListChanged;
        }
 /// <summary>
 /// Initialize a new instance of the DeferFrefreshInfo class.
 /// </summary>
 /// <param name="consumerCollection">The collection that will have it's notifications disabled while this object is alive.</param>
 public DeferRefreshInfo(ConsumerCollection consumerCollection)
 {
     // Initialize the object and disable the collection changed notifications.
     this.consumerCollection = consumerCollection;
     this.consumerCollection.isRefreshDisabled = true;
 }