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

Load() публичный статический Метод

public static Load ( ) : void
Результат void
        public static void Load()
        {
            // First populate the DisplayAttributeDataSet with each DisplayItem
            /////////////////////////////////////////////////////////////////////
            //                          IMPORTANT !!!
            // Make sure that items are added in the same sequence as defined in
            // the DisplayItems enumeration. Later on the data is to be retrieved
            // by the name only.

            // Radar 0
            DisplayAttributesType DataItem = new DisplayAttributesType();
            DataItem.ItemName = "Radar";
            DisplayAttributeDataSet.Add(DataItem);
            // Waypoint 1
            DataItem = new DisplayAttributesType();
            DataItem.ItemName = "Waypoint";
            DisplayAttributeDataSet.Add(DataItem);
            // StateBorder 2
            DataItem = new DisplayAttributesType();
            DataItem.ItemName = "StateBorder";
            DisplayAttributeDataSet.Add(DataItem);
            // BackgroundColor 3
            DataItem = new DisplayAttributesType();
            DataItem.ItemName = "BackgroundColor";
            DisplayAttributeDataSet.Add(DataItem);
            // SectorBorder 4
            DataItem = new DisplayAttributesType();
            DataItem.ItemName = "SectorBorder";
            DisplayAttributeDataSet.Add(DataItem);
            // RunwayBorder 5
            DataItem = new DisplayAttributesType();
            DataItem.ItemName = "RunwayBorder";
            DisplayAttributeDataSet.Add(DataItem);
        }

Usage Example

Пример #1
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////


        public static void InitializeData()
        {
            DisplayAttributes.Load();
            LoadAdaptationData.Load();
        }