private void listarMedicamentos() { try { Negocio.MedicamentoN mn = new Negocio.MedicamentoN(); dgListarMed.ItemsSource = mn.listarTodos(); } catch (Exception) { MessageBox.Show("Ocurrio un error al listar"); } }
private void llenarcboMedElim() { Negocio.MedicamentoN mn = new Negocio.MedicamentoN(); Entidades.Medicamento m = new Entidades.Medicamento(); try { cboLisElim.ItemsSource = mn.listarTodos(); cboLisElim.DisplayMemberPath = "nombreComercial"; cboLisElim.SelectedValuePath = "idMedicamento"; } catch (Exception) { } }