private void createOwnerList()
{
filterListAllowed = false;
checkedListBoxOwner.Items.Clear();
bool removeWOOwner = true;
checkedListBoxOwner.Items.Add("n/a", (creatureCollection.hiddenOwners.IndexOf("n/a") == -1));
foreach (Creature c in creatureCollection.creatures)
{
if (c.owner == null || c.owner.Length == 0)
removeWOOwner = false;
else if (c.owner.Length > 0 && checkedListBoxOwner.Items.IndexOf(c.owner) == -1)
{
checkedListBoxOwner.Items.Add(c.owner, (creatureCollection.hiddenOwners.IndexOf(c.owner) == -1));
if (!tribesControl1.playerExists(c.owner))
tribesControl1.addPlayer(c.owner);
}
}
if (removeWOOwner)
checkedListBoxOwner.Items.RemoveAt(0);
string[] owners = tribesControl1.playerNames;
creatureInfoInputExtractor.AutocompleteOwnerList = owners;
creatureInfoInputTester.AutocompleteOwnerList = owners;
filterListAllowed = true;
}