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(); } } }
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; } }
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); }
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; }