private void txbAsociado_TextChanged(object sender, TextChangedEventArgs e) { AsociadoMantenimiento asociado = new AsociadoMantenimiento(); List<SIGEEA_spListarAsociadoResult> lista = asociado.ListarAsociados(txbAsociado.Text); stpAsociados.Children.Clear(); bool color = true; foreach (SIGEEA_spListarAsociadoResult a in lista) { uc_ItemAsociado item = new uc_ItemAsociado(); item.CedulaAsociado = a.CedParticular_Persona; item.NombreAsociado = a.Nombre; item.CodigoAsociado = a.Codigo_Asociado; item.PersonaId = a.PK_Id_Persona; item.AsociadoId = a.PK_Id_Asociado; item.Color(color); color = !color; stpAsociados.Children.Add(item); } }
private static void IdPersonaAct(DependencyObject d, DependencyPropertyChangedEventArgs e) { uc_ItemAsociado nAsociado = (uc_ItemAsociado)d; nAsociado.PersonaId = Convert.ToInt32(e.NewValue); }
private static void NombreAct(DependencyObject d, DependencyPropertyChangedEventArgs e) { uc_ItemAsociado nAsociado = (uc_ItemAsociado)d; nAsociado.NombreAsociado = e.NewValue as string; }