Beispiel #1
0
        private void SetSortDescriptions(CustomSortDescriptionCollection descriptions)
        {
            if (this._sort != null)
            {
                this._sort.MyCollectionChanged -= new NotifyCollectionChangedEventHandler(this.SortDescriptionsChanged);
            }

            this._sort = descriptions;

            if (this._sort != null)
            {
                this._sort.MyCollectionChanged += new NotifyCollectionChangedEventHandler(this.SortDescriptionsChanged);
            }
        }
 private void SetSortDescriptions(CustomSortDescriptionCollection descriptions)
 {
     _sort = descriptions;
 }