public static void InitBarCode() { try { decodeControl1 = new Honeywell.DataCollection.WinCE.Decoding.DecodeControl(); decodeControl1.AimerTimeout = 0; decodeControl1.AimIDDisplay = false; decodeControl1.AutoScan = true; decodeControl1.CodeIDDisplay = false; decodeControl1.Location = new System.Drawing.Point(51, 117); decodeControl1.ModifierDisplay = false; decodeControl1.Multiline = true; decodeControl1.Name = "decodeControl1"; decodeControl1.Size = new System.Drawing.Size(166, 40); decodeControl1.TabIndex = 56; decodeControl1.TabStop = false; decodeControl1.Text = "decodeControl1"; decodeControl1.VirtualKeyMode = false; decodeControl1.Visible = false; decodeControl1.DecodeEvent += new Honeywell.DataCollection.Decoding.DecodeBase.DecodeEventHandler(decodeControl1_DecodeEvent); } catch { } }
/// <summary> /// Инициализация сканера Dolphin 6100 /// </summary> /// <returns>Whether initialization was successful</returns> public override bool Initialize() { base.nTermType = TERM_TYPE.HWELL6100; xEng = new DecodeControl(); xEng.DecodeEvent += new DecodeBase.DecodeEventHandler(xEng_DecodeEvent); xEng.TriggerKey = TriggerKeyEnum.TK_ONSCAN; xEng.DecodeMode = DecodeMode.DM_STANDARD; xEng.ScanTimeout = 5000; // Разрешение DATAMATRIX xEng.EnableSymbology(SymID.SYM_DATAMATRIX, true); xEng.AutoScan = true; // WiFi Init //base.WiFi = new HoneyWiFi(); base.WiFi = new HoneyWiFi(30, 22, 164, 18); return(true); }
//public DolphinBarcodeScanner(TERM_TYPE nT) //{ // base.nTermType = nT; //} /// <summary> /// Инициализация сканера Dolphin 7850 /// </summary> /// <returns>Whether initialization was successful</returns> public override bool Initialize() { base.nTermType = TERM_TYPE.DOLPH7850; xEng = new DecodeControl(); xEng.Visible = false; //xEng.DecodeMode = DecodeMode.DM_STANDARD; xEng.DecodeMode = DecodeMode.DM_STANDARD; xEng.ScanTimeout = 5000; xEng.AudioMode = AudioDevice.SND_STD_AND_FRONT; xEng.AutoSounds = true; xEng.AutoLEDs = true; // Разрешение DATAMATRIX xEng.EnableSymbology(SymID.SYM_DATAMATRIX, true); /* * xEng.EnableSymbology(SymID.SYM_EAN13, true); * xEng.EnableSymbology(SymID.SYM_EAN8, true); * xEng.EnableSymbology(SymID.SYM_INT25, true); * xEng.EnableSymbology(SymID.SYM_CODE128, true); */ xEng.DecodeEvent += new DecodeBase.DecodeEventHandler(xEng_DecodeEvent); //SymbologyConfig sc = new SymbologyConfig(SymID.SYM_DATAMATRIX); //sc.ReadConfig(SetupType.ST_CURRENT); //sc.flags |= SymFlags.SYMBOLOGY_ENABLE; //sc.WriteConfig(); // WiFi Init base.WiFi = new DolphinWiFi(); return(true); }