Ejemplo n.º 1
0
        private async void populateList(int v)
        {
            myList.ItemsSource = null;
            await BeBusy(true);

            lwop = await rcs.getAllImagesByWorkOrderIDAsync(v);

            foreach (WorkOrdersPhotos p in lwop)
            {
                Stream stream = new System.IO.MemoryStream(p.imageData);
                p.imageSource = ImageSource.FromStream(() => { return(stream); });
            }

            if (lwop.Count > 0)
            {
                myList.ItemsSource = lwop;
            }
            else
            {
                Nothing.IsVisible = true;
            }

            await BeBusy(false);
        }