예제 #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;
 }