AsterixDisplayAnalyser.DisplayAttributes.DisplayItemToIndex C# (CSharp) Метод

DisplayItemToIndex() приватный статический Метод

private static DisplayItemToIndex ( DisplayItemsType ItemToGet ) : int
ItemToGet DisplayItemsType
Результат int
        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;
        }