void ReleaseDesignerOutlets()
        {
            if (ItemDescriptionLabel != null)
            {
                ItemDescriptionLabel.Dispose();
                ItemDescriptionLabel = null;
            }

            if (ItemImageView != null)
            {
                ItemImageView.Dispose();
                ItemImageView = null;
            }

            if (ItemNameLabel != null)
            {
                ItemNameLabel.Dispose();
                ItemNameLabel = null;
            }

            if (ItemPriceLabel != null)
            {
                ItemPriceLabel.Dispose();
                ItemPriceLabel = null;
            }
        }
Exemplo n.º 2
0
        public void SetItem(ShopItemData shopItemData)
        {
            ItemData = shopItemData;

            ItemNameLabel.UpdateTranslation(new TranslationData(shopItemData.GetTranslationKey("NAME")));
            Price = $"${shopItemData.Price}";

            ItemIcon.Style.BackgroundImage = Texture.Load(FileSystem.Mounted, $"assets/icons/{shopItemData.Name}.png") ?? Texture.Load(FileSystem.Mounted, $"assets/none.png");
        }
Exemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (ItemNameLabel != null)
            {
                ItemNameLabel.Dispose();
                ItemNameLabel = null;
            }

            if (ItemStateLabel != null)
            {
                ItemStateLabel.Dispose();
                ItemStateLabel = null;
            }
        }
Exemplo n.º 4
0
        void ReleaseDesignerOutlets()
        {
            if (DeleteButton != null)
            {
                DeleteButton.Dispose();
                DeleteButton = null;
            }

            if (DescritpionLabel != null)
            {
                DescritpionLabel.Dispose();
                DescritpionLabel = null;
            }

            if (ItemImage != null)
            {
                ItemImage.Dispose();
                ItemImage = null;
            }

            if (ItemNameLabel != null)
            {
                ItemNameLabel.Dispose();
                ItemNameLabel = null;
            }

            if (LatitudeLabel != null)
            {
                LatitudeLabel.Dispose();
                LatitudeLabel = null;
            }

            if (LongitudeLabel != null)
            {
                LongitudeLabel.Dispose();
                LongitudeLabel = null;
            }

            if (MapButton != null)
            {
                MapButton.Dispose();
                MapButton = null;
            }
        }
Exemplo n.º 5
0
        void ReleaseDesignerOutlets()
        {
            if (AddItemButton != null)
            {
                AddItemButton.Dispose();
                AddItemButton = null;
            }

            if (AddPhotoButton != null)
            {
                AddPhotoButton.Dispose();
                AddPhotoButton = null;
            }

            if (AddPhotoContainerView != null)
            {
                AddPhotoContainerView.Dispose();
                AddPhotoContainerView = null;
            }

            if (ContentScrollView != null)
            {
                ContentScrollView.Dispose();
                ContentScrollView = null;
            }

            if (ItemDescriptionLabel != null)
            {
                ItemDescriptionLabel.Dispose();
                ItemDescriptionLabel = null;
            }

            if (ItemDescriptionLineView != null)
            {
                ItemDescriptionLineView.Dispose();
                ItemDescriptionLineView = null;
            }

            if (ItemDescriptionTextView != null)
            {
                ItemDescriptionTextView.Dispose();
                ItemDescriptionTextView = null;
            }

            if (ItemNameLabel != null)
            {
                ItemNameLabel.Dispose();
                ItemNameLabel = null;
            }

            if (ItemNameLineView != null)
            {
                ItemNameLineView.Dispose();
                ItemNameLineView = null;
            }

            if (ItemNameTextField != null)
            {
                ItemNameTextField.Dispose();
                ItemNameTextField = null;
            }

            if (ItemPhotoView != null)
            {
                ItemPhotoView.Dispose();
                ItemPhotoView = null;
            }

            if (ItemPriceLabel != null)
            {
                ItemPriceLabel.Dispose();
                ItemPriceLabel = null;
            }

            if (ItemPriceTextField != null)
            {
                ItemPriceTextField.Dispose();
                ItemPriceTextField = null;
            }

            if (PhotoAddedContainerView != null)
            {
                PhotoAddedContainerView.Dispose();
                PhotoAddedContainerView = null;
            }

            if (RemovePhotoButton != null)
            {
                RemovePhotoButton.Dispose();
                RemovePhotoButton = null;
            }
        }