示例#1
0
 public mainForm()
 {
     InitializeComponent();
     m_Symbologies = new CSymbology();
     m_Symbologies.DisableAll();
     m_Symbologies.Code128.Enable = true;
     if (DebugModus())
     {
         txtBoxID.Enabled    = true;
         m_bBoxIDEnabled     = true;
         mnuWriteTag.Enabled = true;
         mnuReadTags.Enabled = true;
         lblCMD.Visible      = true;
         txtCMD.Visible      = true;
         btnCMD.Visible      = true;
     }
     else
     {
         txtBoxID.Enabled    = false;
         m_bBoxIDEnabled     = false;
         mnuWriteTag.Enabled = false;
         mnuReadTags.Enabled = false;
         lblCMD.Visible      = false;
         txtCMD.Visible      = false;
         btnCMD.Visible      = false;
     }
     ChangeStatus(eStatus.Offline);
     txtStatus.Focus();
 }
示例#2
0
 public void Release()
 {
     IsReleased = true;
     this.barReader.Dispose();
     this.barReader = null;
     this.symb      = null;
 }
        public void InitialComponent()
        {
            this.symb = new CSymbology("AllScanners");

            //use symbology exception
            this.symb.EnableSymbologyExceptions(true);

            //set enable scan format type

            //set Code39 enable status
            this.symb.Code39.Enable = true;

            ////set code128 enable status
            //this.symb.Code128.Enable = true;

            //set PDF417 enable status
            this.symb.Pdf417.Enable = true;

            //set QrCode enable status
            this.symb.QrCode.Enable = true;

            ////set Code93 enable status
            //this.symb.Code93.Enable = true;

            this.barReader = new BarcodeReader();
            this.barReader.ScannerEnable = false;
        }