private void BadScan_Click(object sender, System.EventArgs e)
        {
            ScannerSimulator Sim = ServiceObjectReference.Target as ScannerSimulator;

            if (Sim != null)
            {
                Sim.InputErrorEvent();
            }
        }
        private void GoodScan_Click(object sender, System.EventArgs e)
        {
            // Queue up a data event
            BarCodeSymbology type = (BarCodeSymbology)Enum.Parse(typeof(BarCodeSymbology), Symbology.SelectedItem.ToString());
            ScannerSimulator Sim  = ServiceObjectReference.Target as ScannerSimulator;

            if (Sim != null)
            {
                Sim.InputDataEvent(BarCode.Text, type);
            }
        }
Esempio n. 3
0
		public ScannerSimulatorWindow(ScannerSimulator serviceObject) : base(serviceObject)
		{
			Invoke(new MethodDelegate(InitializeComponent));
			Invoke(new MethodDelegate(InitializeUI));
		}
 public ScannerSimulatorWindow(ScannerSimulator serviceObject) : base(serviceObject)
 {
     Invoke(new MethodDelegate(InitializeComponent));
     Invoke(new MethodDelegate(InitializeUI));
 }