Example #1
0
        public AggregateForm()
        {
            InitializeComponent();

            itemsView = new AggregateBindingListView<Item>();

            LoadFeeds();

            itemsGrid.DataSource = itemsView;
        }
        public AggregateForm()
        {
            InitializeComponent();

            itemsView = new AggregateBindingListView <Item>();

            LoadFeeds();

            itemsGrid.DataSource = itemsView;
        }
Example #3
0
        /// <summary>
        /// Creates a new <see cref="ObjectView&ltT&gt;"/> 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();
        }