コード例 #1
0
        private void printBarcodeForCopyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            loadEnabled = false;
            int           copyId   = Convert.ToInt32(gridOverview.SelectedRows[0].Cells["ExemplarID"].Value);
            List <string> barcodes = new List <string>();

            barcodes.Add(printerHelper.GenerateBarcode(copyId));
            printerHelper.PrintMultipleBarcodes(barcodes, this);
        }
コード例 #2
0
        /// <summary>
        /// Lädt ein Exemplar
        /// </summary>
        private void LoadForm(Copy copy)
        {
            tb_ID.Text        = copy.CopyId.ToString();
            tb_ISBN.Text      = copy.CopyIsbn;
            acb_Zustand.Text  = copy.Condition.ConditionName;
            dTP_AufDat.Value  = copy.DateRegistration;
            mtb_Barcode.Text  = printerHelper.GenerateBarcode(copy.CopyId);
            BarcodeBox.Height = printerHelper.BarcodeImage.Height;
            BarcodeBox.Width  = printerHelper.BarcodeImage.Width;
            BarcodeBox.Image  = printerHelper.BarcodeImage;


            rb_edit.Checked = true;

            if (acb_Zustand.DataSource == null)
            {
                conditionHelper.FillCombobox(ref acb_Zustand, -1);
            }
        }