コード例 #1
0
        public void fillDtgDiagnostico()
        {
            DataTable lDtOcupacion = new DataTable();

            ControlDePacientes.Dal.TipoEnfermedad lTipoEnfermedad = new TipoEnfermedad();
            lDtOcupacion = lTipoEnfermedad.TipoEnfermedadGetAll();

            dtgDiagnostico.ItemsSource = lDtOcupacion.DefaultView;
        }
コード例 #2
0
        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;
        }