Beispiel #1
0
 public RadListSource(IDataItemSource source)
     : this(source, null)
 {
     this.collectionView = new RadDataView <TDataItem>(this);
     if (this.collectionView != null)
     {
         this.collectionView.CurrentChanged += new EventHandler(collectionView_CurrentChanged);
     }
 }
Beispiel #2
0
 public RadListSource(IDataItemSource source)
     : this(source, (RadCollectionView <TDataItem>)null)
 {
     this.collectionView = this.CreateDefaultCollectionView();
     if (this.collectionView == null)
     {
         return;
     }
     this.collectionView.CurrentChanged += new EventHandler(this.collectionView_CurrentChanged);
 }
Beispiel #3
0
 public RadListSource(IDataItemSource source, RadCollectionView <TDataItem> collectionView)
 {
     this.currencyManager = (CurrencyManager)null;
     this.boundProperties = new PropertyDescriptorCollection(new PropertyDescriptor[0]);
     this.collectionView  = collectionView;
     if (this.collectionView == null)
     {
         this.collectionView = (RadCollectionView <TDataItem>) new EmptyCollectionView <TDataItem>((IEnumerable <TDataItem>) this);
     }
     this.collectionView.CurrentChanged += new EventHandler(this.collectionView_CurrentChanged);
     if (source == null)
     {
         this.bindingContext = new BindingContext();
     }
     else
     {
         this.source         = source;
         this.bindingContext = this.source.BindingContext;
         this.source.BindingContextChanged += new EventHandler(this.source_BindingContextChanged);
     }
 }
Beispiel #4
0
        public RadListSource(IDataItemSource source, RadCollectionView <TDataItem> collectionView)
        {
            this.currencyManager = null;
            this.boundProperties = null;
            this.collectionView  = collectionView;
            if (this.collectionView == null)
            {
                this.collectionView = new EmptyCollectionView <TDataItem>(this);
            }

            this.collectionView.CurrentChanged += new EventHandler(collectionView_CurrentChanged);

            if (source == null)
            {
                this.bindingContext = new BindingContext();
                return;
            }

            this.source         = source;
            this.bindingContext = this.source.BindingContext;
            this.source.BindingContextChanged += new EventHandler(source_BindingContextChanged);
        }
Beispiel #5
0
 public ListControlListSource(IDataItemSource owner) : base(owner)
 {
     Debug.Assert(owner is ListDataLayer);
     this.dataLayer = (ListDataLayer)owner;
 }
 public ListControlListSource(IDataItemSource owner)
     : base(owner)
 {
     this.dataLayer = (ListDataLayer)owner;
 }