Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
		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);
		}
Esempio n. 4
0
		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;
		}