Exemple #1
0
        public void RemoveColumn(IColumn column)
        {
            _columns.Remove(column);

            RaisePropertyChanged("Columns");
            ColumnsChanged.RaiseEvent(this,
                                      new CollectionChangeEvent <IColumn>(CollectionChangeAction.Deletion, column));
        }
Exemple #2
0
        public void AddColumn(IColumn column)
        {
            _columns.Add(column);
            column.Parent = this;

            column.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(column_PropertyChanged);
            RaisePropertyChanged("Columns");
            ColumnsChanged.RaiseEvent(this,
                                      new CollectionChangeEvent <IColumn>(CollectionChangeAction.Addition, column));
        }