AsterixDisplayAnalyser.FrmDetailedView.DisplayCAT34I030Data C# (CSharp) Метод

DisplayCAT34I030Data() приватный Метод

private DisplayCAT34I030Data ( ) : void
Результат void
        private void DisplayCAT34I030Data()
        {
            if (MainASTERIXDataStorage.CAT34Message.Count > 0)
            {
                this.listBoxMainDataBox.Items.Add("Detailed view of: " + MainASTERIXDataStorage.CAT34Message[0].CAT34DataItems[CAT34.ItemIDToIndex("010")].Description);
                ASTERIX.SIC_SAC_Time SIC_SAC_TIME = (ASTERIX.SIC_SAC_Time)MainASTERIXDataStorage.CAT34Message[0].CAT34DataItems[CAT34.ItemIDToIndex("010")].value;
                this.listBoxMainDataBox.Items.Add("SIC/SAC: " + SIC_SAC_TIME.SIC.ToString() + "/" + SIC_SAC_TIME.SAC.ToString());
                this.listBoxMainDataBox.Items.Add("    ");

                // Here determine the flag indicating what data is to be shown
                foreach (MainASTERIXDataStorage.CAT34Data Msg in MainASTERIXDataStorage.CAT34Message)
                {
                    if (Msg.CAT34DataItems[CAT34.ItemIDToIndex("010")].value != null)
                    {
                        SIC_SAC_TIME = (ASTERIX.SIC_SAC_Time)Msg.CAT34DataItems[CAT34.ItemIDToIndex("010")].value;
                        // Display time
                        string Time = SIC_SAC_TIME.TimeofReception.Hour.ToString().PadLeft(2, '0') + ":" + SIC_SAC_TIME.TimeofReception.Minute.ToString().PadLeft(2, '0') + ":" +
                            SIC_SAC_TIME.TimeofReception.Second.ToString().PadLeft(2, '0') + ":" + SIC_SAC_TIME.TimeofReception.Millisecond.ToString().PadLeft(3, '0');
                        this.listBoxMainDataBox.Items.Add("Rcvd Time: " + Time);
                        CAT34I030Types.CAT34I030_Time_Of_The_Day_User_Type MyData = (CAT34I030Types.CAT34I030_Time_Of_The_Day_User_Type)Msg.CAT34DataItems[CAT34.ItemIDToIndex("030")].value;
                        this.listBoxMainDataBox.Items.Add("\t" + "Time of Day: " + MyData.TimeOfDay.ToString());
                        this.listBoxMainDataBox.Items.Add("    ");
                    }
                }
            }
            else
            {
                this.listBoxMainDataBox.Items.Add("No data of this CAT/Item was received !!!");
            }
        }