예제 #1
0
파일: ListBase!1.cs 프로젝트: riyuexing/rms
        protected override void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
        {
            this._sortDirection = direction;
            this._sortProperty  = prop;
            SortComparer <T> comparer = new SortComparer <T>(prop, direction);

            this.ApplySortInternal(comparer);
        }
예제 #2
0
파일: ListBase!1.cs 프로젝트: riyuexing/rms
        public void ApplySort(ListSortDescriptionCollection sorts)
        {
            this._sortProperty     = null;
            this._sortDescriptions = sorts;
            SortComparer <T> comparer = new SortComparer <T>(sorts);

            this.ApplySortInternal(comparer);
        }
예제 #3
0
파일: ListBase!1.cs 프로젝트: riyuexing/rms
        public void Sort(string orderBy)
        {
            SortComparer <T> comparer = new SortComparer <T>(orderBy);

            this.ApplySortInternal(new Comparison <T>(comparer.Compare));
        }