/// <summary>
 /// 所有的里程
 /// </summary>
 //private List<Milestone> _allStone = new List<Milestone>();
 #endregion
 /// <summary>
 /// 初始化
 /// </summary>
 public WavefromData()
 {
     CitFileProcess        = new CITFileProcess();
     _invaildDataManager   = new InvalidDataManager();
     _labelInfoDataManager = new LabelInfoManager();
     _mileList             = new MilestoneList();
     ChannelList           = new List <ChannelsClass>();
     LayerConfig           = new LayerConfigData();
     ChanneDefinitionList  = new List <ChannelDefinition>();
     IndexOperator         = new IndexOperator();
 }
        /// <summary>
        /// 初始化波形数据
        /// </summary>
        public void InitWaveformData()
        {
            if (File.Exists(_citFilePath))
            {
                LayerConfig = new LayerConfigData();
                string dir = string.Empty;
                switch (CitFile.iDir)
                {
                case 1: dir = "上行"; break;

                case 2: dir = "下行"; break;

                case 3: dir = "单线"; break;
                }
                LayerConfig.Name = CitFile.sTrackName + dir + " " + CitFile.sTrain
                                   + " " + (CitFile.iKmInc == 0 ? "增" : "减") + " " + (CitFile.iRunDir == 0 ? "正" : "反") + " " + CitFile.sDate;//+ " " + Path.GetFileNameWithoutExtension(CitFilePath);
                List <ChannelDefinition> channelDefinitions = CitFileProcess.GetChannelDefinitionList(_citFilePath);
                if (channelDefinitions.Count > 2)
                {
                    channelDefinitions.RemoveAt(0);
                    channelDefinitions.RemoveAt(0);
                    for (int i = 0; i < channelDefinitions.Count; i++)
                    {
                        if (ChannelList.Count > 0)
                        {
                            ChannelsClass channel = ChannelList.Find(p => p.Id == channelDefinitions[i].sID);
                            if (channel != null)
                            {
                                channel.Offset = channelDefinitions[i].fOffset;
                                channel.Scale  = channelDefinitions[i].fScale;
                            }
                        }
                    }
                }
            }
        }