/// <summary>
 /// <param name="height">the height of the matrix (Rows)</param>
 /// <param name="width">the width of the matrix (Cols)</param>
 /// </summary>
 internal BarcodeMatrix(int height, int width)
 {
     matrix = new BarcodeRow[height];
     //Initializes the array to the correct width
     for (int i = 0, matrixLength = matrix.Length; i < matrixLength; i++)
     {
         matrix[i] = new BarcodeRow((width + 4) * 17 + 1);
     }
     this.width      = width * 17;
     this.height     = height;
     this.currentRow = -1;
 }
示例#2
0
 /// <summary>
 /// <param name="height">the height of the matrix (Rows)</param>
 /// <param name="width">the width of the matrix (Cols)</param>
 /// </summary>
 internal BarcodeMatrix(int height, int width)
 {
    matrix = new BarcodeRow[height + 2];
    //Initializes the array to the correct width
    for (int i = 0, matrixLength = matrix.Length; i < matrixLength; i++)
    {
       matrix[i] = new BarcodeRow((width + 4)*17 + 1);
    }
    this.width = width*17;
    this.height = height + 2;
    this.currentRow = 0;
 }
示例#3
0
 /// <summary>
 /// <param name="height">the height of the matrix (Rows)</param>
 /// <param name="width">the width of the matrix (Cols)</param>
 /// <param name="compact">defines if a compact PDF417 should be encoded</param>
 /// </summary>
 internal BarcodeMatrix(int height, int width, bool compact)
 {
     matrix = new BarcodeRow[height];
     //Initializes the array to the correct width
     for (int i = 0, matrixLength = matrix.Length; i < matrixLength; i++)
     {
         //Matrix width is: Cols*COLUMN_WIDTH + <PDF417_START_COLS> + <PDF417_END_COLS> + 1
         //When compact=true, the END_COLS are omitted.
         matrix[i] = new BarcodeRow(width * COLUMN_WIDTH + (2 * COLUMN_WIDTH) + (compact ? 0 : 2) * COLUMN_WIDTH + 1);
     }
     this.width      = width * COLUMN_WIDTH;
     this.height     = height;
     this.currentRow = -1;
 }
            public BarcodeRow AddBarcodeRow(string MaHangHoa, string TenHangHoa, byte[] MaVach, double DonGia, int SoLuong, string TenSieuThi)
            {
                BarcodeRow rowBarcodeRow = ((BarcodeRow)(this.NewRow()));

                object[] columnValuesArray = new object[] {
                    MaHangHoa,
                    TenHangHoa,
                    MaVach,
                    DonGia,
                    SoLuong,
                    TenSieuThi
                };
                rowBarcodeRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowBarcodeRow);
                return(rowBarcodeRow);
            }
示例#5
0
            public BarcodeRow AddBarcodeRow(string Type, string RawData, string EncodedValue, double EncodingTime, bool IncludeLabel, string Forecolor, string Backcolor, string CountryAssigningManufacturingCode, int ImageWidth, int ImageHeight, string Image)
            {
                BarcodeRow rowBarcodeRow = ((BarcodeRow)(this.NewRow()));

                object[] columnValuesArray = new object[] {
                    Type,
                    RawData,
                    EncodedValue,
                    EncodingTime,
                    IncludeLabel,
                    Forecolor,
                    Backcolor,
                    CountryAssigningManufacturingCode,
                    ImageWidth,
                    ImageHeight,
                    Image
                };
                rowBarcodeRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowBarcodeRow);
                return(rowBarcodeRow);
            }
 public void RemoveBarcodeRow(BarcodeRow row) {
     this.Rows.Remove(row);
 }
 public void AddBarcodeRow(BarcodeRow row) {
     this.Rows.Add(row);
 }
 public BarcodeRowChangeEvent(BarcodeRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
示例#9
0
 public BarcodeRowChangeEvent(BarcodeRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
示例#10
0
 public void RemoveBarcodeRow(BarcodeRow row)
 {
     this.Rows.Remove(row);
 }
示例#11
0
 public void AddBarcodeRow(BarcodeRow row)
 {
     this.Rows.Add(row);
 }