private void Inmuebles_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         Inmueblea p = (Inmueblea)Inmuebles.SelectedItem;
         if (p != null)
         {
             numinmueble = p.ID;
         }
     }
     catch (Exception ex)
     {
     }
 }
 private void CargarInmuebles()
 {
     try
     {
         PrincipalPermission MyPermission = new PrincipalPermission(NombreUsuario, "V4");
         MyPermission.Demand();
         Inmueble[] c = inmueble.TableToArray(inmueble.SelActivos());
         for (int x = 0; x < c.Length; x++)
         {
             Inmueblea inmueblea = (new Inmueblea()
             {
                 ID = c[x].Clave, ClaveCatastral = c[x].Clave_Catastral, Propietario = c[x].Nombre_Propietario, Colonia = c[x].Colonia, Calle = c[x].Calle, EntreCalles = c[x].Entre_Calles, NumeroExterior = c[x].Numero_Exterior, NumeroInterior = c[x].Numero_Interior
             });
             Inmuebles.Items.Add(inmueblea);
         }
     }
     catch (Exception ex)
     {
     }
 }
Example #3
0
 private void Inmuebles_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         Inmueblea p = (Inmueblea)Inmuebles.SelectedItem;
         if (p != null)
         {
             TXT_ClaveCatastral.Text = p.ClaveCatastral;
             TXT_Propietario.Text    = p.Propietario;
             TXT_Colonia.Text        = p.Colonia;
             TXT_Calle.Text          = p.Calle;
             TXT_EntreCalles.Text    = p.EntreCalles;
             TXT_NumeroInterior.Text = p.NumeroInterior;
             TXT_NumeroExterior.Text = p.NumeroExterior;
             IDinmueble = p.ID;
         }
     }
     catch (Exception ex)
     {
     }
 }