Hello there,
I am new to WPF (I used to develop windows applications before), but i want to try to build an application using WPF, ADO.NET and C#.NET.
I am quite lost as i don;t know how should i represent a cinema seating chart in WPF. I have in mind to place inside a grid in a WPF form a set of buttons, each representing a seat in the cinema hall. Now i want to bind these buttons to fields in a Datatable and change the appearance of the button on button click, when the seat is to be tagged as sold, for example.
Should i be creating fields for each seat in sql table to be able to bind to a button in the WPF form? Or should i be creating a class for the seating chart and have a list for the seats and bind the list's elements to the buttons?
If somebody can help me i will be very glad. I did some research but could not find any code resembling what i intend to do.
Thanks in advance.