예제 #1
0
        private async void LoadContent()
        {
            ImageSource src  = null;
            ImageSource src1 = null;
            AdminIcon   ai   = await DBActions.LoadAdminIcon(DBActions._p(binary.PRODUCT));

            Images img = await DBActions.LoadProductImage(binary.PRODUCT);

            if (ai != null)
            {
                src = App.ByteToImage(ai.Image);
            }
            else
            {
                src = App.GetSource("icon-blank.png");
            }
            if (img != null)
            {
                src1 = App.ByteToImage(img.Image);
            }
            else
            {
                src1 = App.GetSource("noproduct.jpg");
            }
            icon.SetSRC(src);
            product_image.SetSRC(src1);
            content_loading.IsVisible = false;
            animation.Pause();
            LOADING = false;
        }
예제 #2
0
        private async void SetIcon()
        {
            var v = await DBActions.LoadAdminIcon(_a);

            if (v != null)
            {
                hadAdminIcon = true;
                icon.Source  = App.ByteToImage(v.Image);
            }
            else
            {
                icon.Source = App.GetSource("icon.png");
            }
        }