public void fillDtgDiagnostico() { DataTable lDtOcupacion = new DataTable(); ControlDePacientes.Dal.TipoEnfermedad lTipoEnfermedad = new TipoEnfermedad(); lDtOcupacion = lTipoEnfermedad.TipoEnfermedadGetAll(); dtgDiagnostico.ItemsSource = lDtOcupacion.DefaultView; }
private void fillCmbDiagnosticoSalida() { ControlDePacientes.Dal.TipoEnfermedad lTipoEnfermedad = new ControlDePacientes.Dal.TipoEnfermedad(); DataTable lDtTipoEnfermedad = new DataTable(); lDtTipoEnfermedad = lTipoEnfermedad.TipoEnfermedadGetAll(); AddRowComboBox(lDtTipoEnfermedad); cmbDiagnosticoFinal.ItemsSource = lDtTipoEnfermedad.DefaultView; cmbDiagnosticoFinal.DisplayMemberPath = "TipoEnfermedadName"; cmbDiagnosticoFinal.SelectedValuePath = "IdTipoEnfermedad"; cmbDiagnosticoFinal.SelectedIndex = 0; }