public void Add()
        {
            var selected = AvailableColumns.Where(c => c.IsSelected).ToArray();

            foreach (var item in selected)
            {
                AvailableColumns.Remove(item);
                item.IsSelected = false;
                SelectedColumns.Add(item);
            }
        }
Exemple #2
0
        private void AssignColumns()
        {
            ObservableCollection <ColumnDescriptor> columns;

            if (SelectedGrouping == ReviewGrouping.File)
            {
                columns =
                    new ObservableCollection <ColumnDescriptor>(
                        AvailableColumns.Where(cd => cd.DisplayMember != "Name" && cd.DisplayMember != "Folder"));
            }
            else
            {
                columns =
                    new ObservableCollection <ColumnDescriptor>(
                        AvailableColumns.Where(cd => cd.DisplayMember != "Comment"));
            }

            Columns = columns;

            NotifyOfPropertyChange(() => Columns);
        }