Esempio n. 1
0
        public static DrugImage CreateDrugImage(int ID, global::System.DateTimeOffset updatedAt, global::System.DateTimeOffset createdAt)
        {
            DrugImage drugImage = new DrugImage();

            drugImage.Id        = ID;
            drugImage.UpdatedAt = updatedAt;
            drugImage.CreatedAt = createdAt;
            return(drugImage);
        }
        void ReleaseDesignerOutlets()
        {
            if (AddButton != null)
            {
                AddButton.Dispose();
                AddButton = null;
            }

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

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

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

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

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

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

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

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