private void Button_Click(object sender, RoutedEventArgs e)
        {
            AxBarcodeReaderLib._IReaderEvents_BarcodeInEventHandler barcodeIn = new AxBarcodeReaderLib._IReaderEvents_BarcodeInEventHandler(OnBarcodeIn);
            barcodeDecoder.BarcodeIn += barcodeIn;

            barcodeDecoder.VideoStart(0, 0, 0);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            //axBarcodeDecoder1.SetProperty("VideoDelayAfterDec", 300);
            //axBarcodeDecoder1.SetProperty("VideoStretch", 1);
            //axBarcodeDecoder1.SetProperty("VideoBeep", 0);
            //axBarcodeDecoder1.VideoStart(0, 170, 120);

            AxBarcodeReaderLib._IReaderEvents_BarcodeInEventHandler barcodeIn = new AxBarcodeReaderLib._IReaderEvents_BarcodeInEventHandler(OnBarcodeIn);
            axBarcodeDecoder1.BarcodeIn += barcodeIn;

            axBarcodeDecoder1.SetProperty("LinearVerify", true);
            axBarcodeDecoder1.ShowImage = true;
            //axBarcodeDecoder1.BarcodeTypes |= (int)BarcodeReaderLib.EBarcodeTypes.DataMatrix;
            axBarcodeDecoder1.VideoStart(0, 0, 0);
        }