Beispiel #1
0
        /// <summary>
        /// 获取DrillLayer
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GetDrillLayer()
        {
            int totalDrllPrgs;

            totalDrllPrgs = 0;
            try
            {
                foreach (IDrillProgram lDrllPrgs in theJob.DrillPrgs())
                {
                    totalDrllPrgs = totalDrllPrgs + 1;
                }

                jobNum_DRILL_LIST = totalDrllPrgs;

                Dictionary <string, string>[] dictDRILL_LIST = new Dictionary <string, string> [totalDrllPrgs];

                int i;
                i = 0;

                for (int dictLength = 0; dictLength < dictDRILL_LIST.Length; dictLength++)
                {
                    dictDRILL_LIST[dictLength] = new Dictionary <string, string>();
                }

                foreach (IDrillProgram DrllPrgs in theJob.DrillPrgs())
                {
                    Dictionary <string, string> dictAllDRILL_LIST = new Dictionary <string, string>();
                    XmlGenerate.AllAttrGetKeyValues(DrllPrgs, dictAllDRILL_LIST);
                    dictDRILL_LIST[i].Add("VIA_TYPE", dictAllDRILL_LIST["DRILL_TYPE"]);
                    dictDRILL_LIST[i].Add("START_LAYER", dictAllDRILL_LIST["START_INDEX"]);
                    dictDRILL_LIST[i].Add("END_LAYER", dictAllDRILL_LIST["END_INDEX"]);
                    i++;
                }
                listDRILL_LISTT = new List <Dictionary <string, string> >();
                foreach (var item in dictDRILL_LIST)
                {
                    listDRILL_LISTT.Add(item);
                }
            }
            catch (Exception ex)
            {
                string str = ex.ToString();
                //throw;
            }
        }