コード例 #1
0
ファイル: Constants.cs プロジェクト: coshkun/CapCalc
 public void ReCreateMatrix(ContainerInfo Container)
 {
     data = new CM2[(int)Container.Long, (int)Container.Width];
     initialize((int)Container.Long, (int)Container.Width);
     space = new System.Drawing.Rectangle(0, 0, (int)Container.Long, (int)Container.Width);
     _SQR = (int)Container.SQR; _CBM = (int)Container.CBM;
     restSQR = _SQR; RestCBM = _CBM;
     data[0, 0].StartIndex = true;
 }
コード例 #2
0
ファイル: Constants.cs プロジェクト: coshkun/CapCalc
 /// <summary>
 /// Pay attention to use "cm" as base unit. No convertion funtion included for scaling.
 /// </summary>
 /// <param name="Container"></param>
 public ContainerMatrix(ContainerInfo Container)
 {
     _owner = Container;
     data = new CM2[(int)Container.Width, (int)Container.Long];
     initialize((int)Container.Width, (int)Container.Long);
     space = new System.Drawing.Rectangle(0, 0, (int)Container.Width, (int)Container.Long);
     _SQR = (int)Container.SQR; _CBM = (int)Container.CBM;
     restSQR = _SQR; RestCBM = _CBM;
     ResetIndexes();// data[0, 0].StartIndex = true;
 }