コード例 #1
0
ファイル: BarcodeControl.cs プロジェクト: ikvm/test
        //{
        //    [MethodImpl(MethodImplOptions.Synchronized)] add
        //    {
        //        this.BarcodeChanged = Delegate.Combine(this.BarcodeChanged, value);
        //    }
        //    [MethodImpl(MethodImplOptions.Synchronized)] remove
        //    {
        //        this.BarcodeChanged = Delegate.Remove(this.BarcodeChanged, value);
        //    }
        //}

        public BarcodeControl()
        {
            base.Font                     = (this._barcode.Font);
            base.BackColor                = (this._barcode.BackColor);
            base.ForeColor                = (this._barcode.ForeColor);
            this.ClearAreas               = this._barcode.ClearAreas;
            this.BarTypeWidths            = this._barcode.BarTypeWidths;
            this.SpaceTypeWidths          = this._barcode.SpaceTypeWidths;
            base.ResizeRedraw             = (true);
            this._barcode.BarcodeChanged += this.Barcode_BarcodeChanged;
        }
コード例 #2
0
 public BarcodeImage()
 {
     SetFontInfoFromFont(base.Font, this._barcode.Font);
     base.BackColor       = (this._barcode.BackColor);
     base.ForeColor       = (this._barcode.ForeColor);
     base.ImageUrl        = ("Barcode.aspx");
     this._imageFormat    = System.Drawing.Imaging.ImageFormat.Gif;
     this._barWidth       = 1;
     this._barcodeWidth   = 0;
     this._barcodeHeight  = 40;
     this._transparent    = false;
     this.ClearAreas      = this._barcode.ClearAreas;
     this.BarTypeWidths   = this._barcode.BarTypeWidths;
     this.SpaceTypeWidths = this._barcode.SpaceTypeWidths;
 }