示例#1
0
        public bool InsertData(int nPointCurrent, int dataindex, RES_DATA res, out string strResult)
        {
            strResult = string.Empty;



            try
            {
                RES_DATA[,] single = mapData[dataindex];

                int nPoint = nPointCurrent - 1;
                int nCycle = m_nCycleCurrent;

                if (nPoint > this.m_nPointTarget ||
                    nCycle > this.m_nCycleTarget)
                {
                    strResult = string.Format("SEQ-TWISTED. CYCLE{0:00}-POINT{1:00}", nPoint, nCycle);
                    return(false);
                }
                else
                {
                    single[nPoint, nCycle] = res;
                }
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex.ToString());
                return(false);
            }
            return(true);
        }
示例#2
0
 public void SetInit(int nDataCount)
 {
     for (int nData = 0; nData < nDataCount; nData++)
     {
         RES_DATA[,] singlemap = new RES_DATA[m_nPointTarget, m_nCycleTarget];
         mapData.Add(singlemap);
     }
 }