コード例 #1
0
        public static void Draw(ChairRow 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);
            }
        }
コード例 #2
0
        public void DrawSeat(int x, int y, int key, int table, Model.LocationSeatplan location)
        {
            var chairKeys = new List <ChairKey>();

            chairKeys.Add(new ChairKey {
                Key = key.ToString(CultureInfo.InvariantCulture), Invisible = false
            });
            var chairRow = new ChairRow
            {
                ChairSize      = 41,
                ChairKeys      = chairKeys,
                StartPositionX = x,
                StartPositionY = y,
                EndPositionX   = x,
                EndPositionY   = y,
                NumberOfChairs = chairKeys.Count
            };

            Helper.Draw(chairRow, location, "Tisch " + table + ", Platz ");
        }