Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want seat selection logic and layout...help me.
Posted
Updated 2-Mar-14 20:05pm
v2
Comments
thatraja 3-Mar-14 2:06am    
Last week, I gave you answer, didn't I? check it out
how to design theater seat layout in asp.net using c#

Don't repost questions

1 solution

I want lots of things - around here, on this site, you get very little on such a blind question

Without knowing more about the problem, you could probably represent seats in a 2 x 2 matrix - this allows you to have entries in the matrix marked as 'no seat exists' to account for various theatre geometries around the edges

Each 'seat' then could be an object, with a field/property for status 'allocated', 'not allocated' - so to allocate a seat you simply present a list of the seats where the status is 'not allocated', let the user choose a seat, then change its status to 'allocated', and maybe have a field in the seat object to identify 'who' its allocated to

ps 'help me' - really ? .. next time, learn some manners
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900