Esempio n. 1
0
        public void AddVarieties(string publicDescription, string privateDescription, string subType, float horizontal, float vertical, float verticalMoveRelative, float verticalMoveAbsolute, bool combine, Alignment alignment, bool fontOfType, bool fontOfDescritpion, float spacing, float watermarkHeight, string watermarkImage, Appearance appearance, float maxWidth)
        {
            if (Varieties.Count() == 0) // The first varieties can never be combined
            {
                combine = false;
            }

            Varieties varieties = new Varieties(subType, publicDescription, privateDescription, combine, horizontal, vertical, verticalMoveRelative, verticalMoveAbsolute, alignment, fontOfType, fontOfDescritpion, spacing, watermarkHeight, watermarkImage, appearance, maxWidth);

            Varieties.Add(varieties);
        }
Esempio n. 2
0
        public void AddVariety(string number, string description, string title, FrameColor frameColor, float width, float height, float horizontal, float vertical, bool skip, Appearance appearance, string picture, string overprint, Shape shape, Alignment alignment, string positions)
        {
            Variety variety = new Variety(number, description, frameColor.GetColor(), width, height, horizontal, vertical, title, shape, skip, "", appearance, picture, overprint, alignment, positions);

            Varieties varieties = Varieties[Varieties.Count() - 1];

            if (varieties.Rows.Count() == 0)
            {
                varieties.Rows.Add(new List <Variety>());
            }

            varieties.Rows[varieties.Rows.Count() - 1].Add(variety);
        }