I need help with this loop and displaying the array correctly into a label. Here is the Code
private void ErrorEquipment()
{
string[] Equips = { "Projector", "Computer", "Network", "Webcam" };
for (int i = 0; i <= 3; i++)
{
if (venue.Equipment[i] == true)
{
lblEquipment.Text = ("Room Has " + Equips[i]);
}
}
}
What I want is to check if the venue has the equipment and if so it, display what equipment the venue has in a label. Currently it checks that but if a venue has more than one equipment available and it overwrites the first equipment that was put in the label.