Пример #1
0
        private void Delete()
        {
            var item = AllItems.ToList().Find(i => i.Equals(SelectedItemsSelectedItem.ToModel().AccessoryType));

            if (item == null)
            {
                AllItems.Add(SelectedItemsSelectedItem.AccessoryType.ToModel());
            }
            SelectedItems.Remove(SelectedItemsSelectedItem);
            SelectedItemsSelectedItem = null;
        }
Пример #2
0
        public virtual IEnumerable <TE> GetAll()
        {
            var r = AllItems.ToList();

            return(r);
        }