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); } }
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 "); }