Exemplo n.º 1
0
 public DataTableLoaderView(DataTableLoader dataTableLoader, IObjectComparer defaultObjectComparer, ObjectToFilterableConverter defaultObjectToFilterableConverter)
 {
     if (dataTableLoader == null)
     {
         throw new ArgumentNullException("dataTableLoader");
     }
     if (dataTableLoader.Table == null)
     {
         throw new ArgumentException("dataTableLoader.Table is null");
     }
     if (defaultObjectComparer == null)
     {
         throw new ArgumentNullException("defaultObjectComparer");
     }
     if (defaultObjectToFilterableConverter == null)
     {
         throw new ArgumentNullException("defaultObjectToFilterableConverter");
     }
     this.DataTableLoader       = dataTableLoader;
     this.DefaultObjectComparer = defaultObjectComparer;
     this.DefaultObjectToFilterableConverter      = defaultObjectToFilterableConverter;
     this.FilterSupportDescriptions.ListChanging += this.FilterSupportDescriptions_ListChanging;
     this.FilterSupportDescriptions.ListChanged  += this.FilterSupportDescriptions_ListChanged;
     this.SortSupportDescriptions.ListChanging   += this.SortSupportDescriptions_ListChanging;
     this.SortSupportDescriptions.ListChanged    += this.SortSupportDescriptions_ListChanged;
 }
Exemplo n.º 2
0
 public FilteredDataTableLoaderView(DataTableLoader dataTableLoader, IObjectComparer defaultObjectComparer, ObjectToFilterableConverter defaultObjectToFilterableConverter) : base(dataTableLoader, defaultObjectComparer, defaultObjectToFilterableConverter)
 {
 }