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(); }
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); } }
private void Button_Click(object sender, RoutedEventArgs e) { VariablesGlobales.c_quinientos += 1; dv.Enable(); dv.SimulateInsertion(quinentos); }