Exemple #1
0
        public SortableBindingList(IEnumerable <T> contents)
        {
            if (contents != null)
            {
                AddList(contents);
            }

            SortComparer = new GenericSortComparer <T>();
        }
Exemple #2
0
        public SortableBindingList(IEnumerable <T> contents, ISortComparer <T> comparer)
        {
            if (contents != null)
            {
                AddList(contents);
            }

            if (comparer == null)
            {
                SortComparer = new GenericSortComparer <T>();
            }
            else
            {
                SortComparer = comparer;
            }
        }
Exemple #3
0
 //Constructors
 public SortableBindingList()
 {
     SortComparer = new GenericSortComparer <T>();
 }