private void RepopulateBackgroundList(int selectIndex)
{
cmbBackgrounds.Items.Clear();
for (int i = 0; i < _room.BackgroundCount; i++)
{
if (i == 0)
{
cmbBackgrounds.Items.Add("Main background");
}
else
{
cmbBackgrounds.Items.Add("Background " + i);
}
}
if (_room.BackgroundCount < Room.MAX_BACKGROUNDS)
{
cmbBackgrounds.Items.Add("<Import new background...>");
}
cmbBackgrounds.SelectedIndex = selectIndex;
}