protected EditableCollectionView(IEnumerable collection) : base(collection) { canAddNew = INPCProperty.Create(() => CanAddNew, PropertyChangedFunc); canCancelEdit = INPCProperty.Create(() => CanCancelEdit, PropertyChangedFunc); canRemove = INPCProperty.Create(() => CanRemove, PropertyChangedFunc); currentAddItem = INPCProperty.Create(() => CurrentAddItem, PropertyChangedFunc); currentEditItem = INPCProperty.Create(() => CurrentEditItem, PropertyChangedFunc); isAddingNew = INPCProperty.Create(() => IsAddingNew, PropertyChangedFunc); isEditingItem = INPCProperty.Create(() => IsEditingItem, PropertyChangedFunc); newItemPlaceholderPosition = INPCProperty.Create(() => NewItemPlaceholderPosition, PropertyChangedFunc); }
protected CollectionView(IEnumerable collection) { PropertyChangedFunc = () => PropertyChanged; culture = INPCProperty.Create(() => Culture, PropertyChangedFunc); isCurrentAfterLast = INPCProperty.Create(() => IsCurrentAfterLast, PropertyChangedFunc); isCurrentBeforeFirst = INPCProperty.Create(() => IsCurrentBeforeFirst, PropertyChangedFunc); isempty = INPCProperty.Create(() => IsEmpty, PropertyChangedFunc); GroupDescriptions = new ObservableCollection <GroupDescription> (); SortDescriptions = new SortDescriptionCollection(); SourceCollection = collection; }
protected EditableCollectionView (IEnumerable collection) : base (collection) { canAddNew = INPCProperty.Create (() => CanAddNew, PropertyChangedFunc); canCancelEdit = INPCProperty.Create (() => CanCancelEdit, PropertyChangedFunc); canRemove = INPCProperty.Create (() => CanRemove, PropertyChangedFunc); currentAddItem = INPCProperty.Create (() => CurrentAddItem, PropertyChangedFunc); currentEditItem = INPCProperty.Create (() => CurrentEditItem, PropertyChangedFunc); isAddingNew = INPCProperty.Create (() => IsAddingNew, PropertyChangedFunc); isEditingItem = INPCProperty.Create (() => IsEditingItem, PropertyChangedFunc); newItemPlaceholderPosition = INPCProperty.Create (() => NewItemPlaceholderPosition, PropertyChangedFunc); }
protected CollectionView (IEnumerable collection) { PropertyChangedFunc = () => PropertyChanged; culture = INPCProperty.Create (() => Culture, PropertyChangedFunc); isCurrentAfterLast = INPCProperty.Create (() => IsCurrentAfterLast, PropertyChangedFunc); isCurrentBeforeFirst = INPCProperty.Create (() => IsCurrentBeforeFirst, PropertyChangedFunc); isempty = INPCProperty.Create (() => IsEmpty, PropertyChangedFunc); GroupDescriptions = new ObservableCollection<GroupDescription> (); SortDescriptions = new SortDescriptionCollection (); SourceCollection = collection; }