private static int DisplayItemToIndex(DisplayItemsType ItemToGet)
{
int Index = 0;
switch (ItemToGet)
{
case DisplayItemsType.Radar:
Index = 0;
break;
case DisplayItemsType.Waypoint:
Index = 1;
break;
case DisplayItemsType.StateBorder:
Index = 2;
break;
case DisplayItemsType.BackgroundColor:
Index = 3;
break;
case DisplayItemsType.SectorBorder:
Index = 4;
break;
case DisplayItemsType.RunwayBorder:
Index = 5;
break;
default:
break;
}
return Index;
}