I have to create a simplistic C# windows application that initializes a boolean array of size 10 to false at the beginning of the program. Then as input is added it slowly changes each array indent to true. I can't figure out where to put this. I can't put it in the enterButton event as that would initialize the entire array to "false" each time the button is clicked, but I need it to hold its last spot.
bool[] assignedSeat = new bool[10];
for (int i = 0; i < assignedSeat.Length; i++)
{
assignedSeat[i] = false;
}