public AggregateForm() { InitializeComponent(); itemsView = new AggregateBindingListView<Item>(); LoadFeeds(); itemsGrid.DataSource = itemsView; }
public AggregateForm() { InitializeComponent(); itemsView = new AggregateBindingListView <Item>(); LoadFeeds(); itemsGrid.DataSource = itemsView; }
/// <summary> /// Creates a new <see cref="ObjectView<T>"/> wrapper for a <typeparamref name="T"/> object. /// </summary> /// <param name="object">The <typeparamref name="T"/> object being wrapped.</param> public ObjectView(T @object, AggregateBindingListView <T> parent) { _parent = parent; Object = @object; if (Object is INotifyPropertyChanged) { ((INotifyPropertyChanged)Object).PropertyChanged += new PropertyChangedEventHandler(ObjectPropertyChanged); } if (typeof(ICustomTypeDescriptor).IsAssignableFrom(typeof(T))) { _isCustomTypeDescriptor = true; _customTypeDescriptor = Object as ICustomTypeDescriptor; Debug.Assert(_customTypeDescriptor != null); } _providedViews = new Dictionary <string, object>(); CreateProvidedViews(); }