Exemplo n.º 1
0
        public void ExampleRounded()
        {
            var location = Helper.CreateLocationSeatplan("Testplan", "BackgroundImage.jpg", 2792, 2792);

            #region Draw
            List <ChairKey> chairKeys;
            const int       chairSize = 15;

            chairKeys = new List <ChairKey>();
            for (var seat = 1; seat <= 50; seat++)
            {
                chairKeys.Add(new ChairKey {
                    Key = seat.ToString(CultureInfo.InvariantCulture), Invisible = false
                });
            }
            var chairCircle = new ChairCircle
            {
                ChairSize      = chairSize,
                ChairKeys      = chairKeys,
                NumberOfChairs = chairKeys.Count,
                CircleCenterX  = 1038,
                CircleCenterY  = 1310,
                Radius         = 240
            };
            Helper.Draw(chairCircle, location, "Circle 1, Platz:");
            #endregion

            #region Export PDF
            Helper.SavePdfToFileSystem(location);
            #endregion
        }
Exemplo n.º 2
0
        public static void Draw(ChairCircle chairRow, LocationSeatplan locationSeatplan, string description = "")
        {
            //   var rnd = new Random();

            foreach (var chair in chairRow.SeatCoordinates)
            {
                if (chair.Invisible)
                {
                    continue;
                }

                // location seat
                var seat = Helper.CreateLocationSeat(locationSeatplan, chair.PosX, chair.PosY, chairRow.ChairSize,
                                                     chairRow.ChairSize, description + chair.Key);
            }
        }