Exemple #1
0
 private void initialize(int x, int y)
 {
     _firstIndexAssigned = false;
     for (long i = 0; i < x; i++)
     {
         for (int j = 0; j < y; j++)
         {
             data[i, j] = new CM2();
         }
     }
 }
Exemple #2
0
        public void SetIndex(CM2 Node, string IndexType, bool value)
        {
            switch (IndexType)
            {
            case "START":
                Node.StartIndex = value; break;

            case "END":
                Node.EndIndex = value; break;

            default:
                break;
            }
        }
Exemple #3
0
        public int  GetIndex(CM2 Node, string IndexType)
        {
            int snc = -1;

            switch (IndexType)
            {
            case "START":
                snc = (Node.StartIndex)?1:0; break;

            case "END":
                snc = (Node.EndIndex)?1:0; break;

            default:
                snc = -1; break;
            }
            return(snc);
        }
Exemple #4
0
 private void initialize(int x, int y)
 {
     _firstIndexAssigned = false;
     for (long i = 0; i < x; i++)
     {
         for (int j = 0; j < y; j++)
         {
             data[i, j] = new CM2();
         }
     }
 }
Exemple #5
0
 public void SetIndex(CM2 Node, string IndexType, bool value)
 {
     switch (IndexType)
     {
         case "START":
             Node.StartIndex = value; break;
         case "END":
             Node.EndIndex = value; break;
         default:
             break;
     }
 }
Exemple #6
0
 public int GetIndex(CM2 Node, string IndexType)
 {
     int snc = -1;
     switch (IndexType)
     {
         case "START":
             snc = (Node.StartIndex)?1:0; break;
         case "END":
             snc = (Node.EndIndex)?1:0; break;
         default:
             snc = -1; break;
     }
     return snc;
 }