public void setBoxs(List <MCvBox2D> inputBoxs) { boxs = new myBox[inputBoxs.Count]; for (int index = 0; index < inputBoxs.Count; index++) { boxs[index] = new myBox(inputBoxs[index]); } }
public SampleFile(MCvBox2D[,] theTiles, TilesType theTilesType) { TilesType = theTilesType; int Length0 = theTiles.GetLength(0); int Length1 = theTiles.GetLength(1); boxs = new myBox[Length0, Length1]; for (int i = 0; i < Length0; i++) { for (int j = 0; j < Length1; j++) { boxs[i, j] = new myBox(theTiles[i, j]); } } }