Esempio n. 1
0
        public virtual void Sort()
        {
            if (sortcolumn == "")
            {
                throw new Exception("Sort column required.");
            }
            if (SortObjectType == null)
            {
                throw new Exception("Sort object type required.");
            }
            IRealtimeGenericComparer sorter = new RealtimeGenericComparer();

            sorter.ObjectType   = sortObjectType;
            sorter.SortColumn   = sortcolumn;
            sorter.SortingOrder = (int)sortingOrder;
            InnerList.Sort(sorter);
        }
 public virtual void Sort()
 {
     if(sortcolumn == "") throw new Exception("Sort column required.");
     if(SortObjectType == null) throw new Exception("Sort object type required.");
     IRealtimeGenericComparer sorter = new RealtimeGenericComparer();
     sorter.ObjectType = sortObjectType;
     sorter.SortColumn = sortcolumn;
     sorter.SortingOrder = (int)sortingOrder;
     InnerList.Sort(sorter);
 }