Exemplo n.º 1
0
        ///<summary>
        /// Description	:获取指定轨迹在pattern中的索引位置
        /// Author      :liyi
        /// Date		:2019/07/23
        ///</summary>
        /// <param name="cmdLine"></param>
        /// <returns></returns>
        private int GetCurCmdLineIndex(CmdLine cmdLine)
        {
            if (this.curModule == null)
            {
                return(-1);
            }
            int curIndex = -1;

            for (int i = 0; i < this.curModule.CmdLineList.Count; i++)
            {
                if (cmdLine.Equals(this.curModule.CmdLineList[i]))
                {
                    curIndex = i;
                }
            }
            return(curIndex);
        }