private void txbx_codigo_TextChanged(object sender, EventArgs e) { int aux; if (int.TryParse(txbx_codigo.Text, out aux) && Validaciones.CodigoEnLista(aux)) { MostrarProducto(Establecimiento.GetProductoById(aux)); } else { LimpiarTextos(); } }
private void txbx_codigo_TextChanged(object sender, EventArgs e) { int aux; if (int.TryParse(txbx_codigo.Text, out aux) && Validaciones.CodigoEnLista(aux)) { MostrarProducto(Establecimiento.GetProductoById(aux)); } else { LimpiarTextos(); } }