private void btnEntrar_Click(object sender, EventArgs e) { _tipoAcceso = _diccionario.First(x => x.Value == this.cmbTipoAcceso.SelectedValue.ToString()).Key; _accesoServicio.Insertar(_agenteId, this.dtpFecha.Value.Date, _tipoAcceso, "2", (TimeSpan?)this.dtpHoraAcceso.Value.TimeOfDay); }