Esempio n. 1
0
        void scanner_DecodeEvent(object sender, DecodeEventArgs e)
        {
            Win32.sndPlaySound(Properties.Resources.Scan, Win32.SND_ASYNC | Win32.SND_MEMORY);

            this.BeginInvoke((Action<string>)delegate(string barcode)
            {
                scanCount = 0;
                //ListViewItem item = new ListViewItem(new string[] { barcode });
                //lstView.Items.Insert(0, item);
                onGetBarCode(barcode);
            }, e.Barcode);
        }
Esempio n. 2
0
        void scanner_DecodeEvent(object sender, DecodeEventArgs e)
        {
            Win32.sndPlaySound(Properties.Resources.Scan, Win32.SND_ASYNC | Win32.SND_MEMORY);

            this.BeginInvoke((Action <string>) delegate(string barcode)
            {
                scanCount = 0;
                //ListViewItem item = new ListViewItem(new string[] { barcode });
                //lstView.Items.Insert(0, item);
                onGetBarCode(barcode);
            }, e.Barcode);
        }