示例#1
0
 private void listarMedicamentos()
 {
     try
     {
         Negocio.MedicamentoN mn = new Negocio.MedicamentoN();
         dgListarMed.ItemsSource = mn.listarTodos();
     }
     catch (Exception)
     {
         MessageBox.Show("Ocurrio un error al listar");
     }
 }
示例#2
0
 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)
     {
     }
 }