private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            MSeleccion Metd = new MSeleccion();

            var resp = Metd.MostrarPaises();

            CbPaisNac.ItemsSource       = resp;
            CbPaisNac.DisplayMemberPath = "Pais";
            CbPaisNac.SelectedValuePath = "Codigo";

            var resp2 = new MDepartamento().Mostrar("");

            CbDepartamento.ItemsSource       = resp2;
            CbDepartamento.DisplayMemberPath = "nombre";
            CbDepartamento.SelectedValuePath = "idDepartamento";

            var resp3 = new MTipoTramite().MostrarStatus();

            CbEstadoLegal.ItemsSource       = resp3;
            CbEstadoLegal.DisplayMemberPath = "statusCambio";
            CbEstadoLegal.SelectedValuePath = "statusCambio";

            CbFechaApl.DisplayDateEnd = DateTime.Today;

            RefreshDGIdiomas();
            RefreshDGEducacion();
        }
Beispiel #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MSeleccion Metd = new MSeleccion();

            var resp = Metd.MostrarPaises();

            CbPaisNac.ItemsSource       = resp;
            CbPaisNac.DisplayMemberPath = "Pais";
            CbPaisNac.SelectedValuePath = "Codigo";

            var resp2 = new MDepartamento().Mostrar("");

            CbDepartamento.ItemsSource       = resp2;
            CbDepartamento.DisplayMemberPath = "nombre";
            CbDepartamento.SelectedValuePath = "idDepartamento";

            var resp3 = new MTipoTramite().MostrarStatus();

            CbEstadoLegal.ItemsSource       = resp3;
            CbEstadoLegal.DisplayMemberPath = "statusCambio";
            CbEstadoLegal.SelectedValuePath = "statusCambio";

            fillForm(DataFill);
        }