예제 #1
0
파일: Payment.cs 프로젝트: jccp33/AppKiosco
 private void InsertDocument(decimal denomination, DeviceLibrary.Models.Enums.DocumentType type)
 {
     DeviceLibrary.Models.Document dep = new DeviceLibrary.Models.Document(denomination, type, 1);
     device.Enable();
     device.SimulateInsertion(dep);
     device.Disable();
 }
예제 #2
0
        private void initDeviceLibrary()
        {
            try
            {
                deviceLibrary.Open();
                deviceLibrary.Enable();
                DeviceStatus status = deviceLibrary.Status;


                if (status == DeviceStatus.Disconnected)
                {
                    MessageBox.Show("El dispositivo NO está conectado.");
                    goBack();
                    return;
                }

                if (status == DeviceStatus.Disabled)
                {
                    MessageBox.Show("El dispositivo NO acepta monedas ni billetes en este momento.");
                    goBack();
                    return;
                }

                lblCargando.Visible = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     VariablesGlobales.c_quinientos += 1;
     dv.Enable();
     dv.SimulateInsertion(quinentos);
 }