Esempio n. 1
0
        public void LoadItemTypesPage()
        {
            indicator.StartIndicator();
            Itemtypes.Clear();
            var types = App.Database.GetItemTypes();

            foreach (var item in types)
            {
                Itemtypes.Add(item);
            }
            indicator.EndIndicator();
        }
        public void LoadItemTypesPage()
        {
            indicator.StartIndicator();
            Itemtypes.Clear();
            var types = App.Database.GetItems().Where(s => s.Group.Contains(rootViewModel.Group)).ToList();

            foreach (var item in types)
            {
                var imageTypeUI = new UIItemType
                {
                    ID        = item.ID,
                    TypeName  = item.Name,
                    TypePhoto = ImageSource.FromStream(() => new MemoryStream(item.Photo))
                };

                Itemtypes.Add(imageTypeUI);
            }

            indicator.EndIndicator();
        }