private void CargarAsambleas()
 {
     stpAsambleas.Children.Clear();
     grdPrincipal.Visibility = Visibility.Collapsed;
     grdListar.Visibility = Visibility.Visible;
     DataClasses1DataContext dc = new DataClasses1DataContext();
     List<SIGEEA_spObtenerAsambleasResult> lista = dc.SIGEEA_spObtenerAsambleas().ToList();
     bool color = true;
     foreach (SIGEEA_spObtenerAsambleasResult a in lista)
     {
         uc_Asamblea asamblea = new uc_Asamblea(a.PK_Id_Asamblea, a.Fecha, a.TipoAsamblea, a.NumActa);
         asamblea.Color(color);
         asamblea.btnDetalles.Tag = asamblea.AsambleaId;
         asamblea.btnDetalles.Click += BtnDetalles_Click;
         stpAsambleas.Children.Add(asamblea);
         color = !color;
     }
 }
Пример #2
0
        private static void ActaAsambleaAct(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            uc_Asamblea nAsamblea = (uc_Asamblea)d;

            nAsamblea.AsambleaActa = e.NewValue as string;
        }
Пример #3
0
        private static void IdAsambleaAct(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            uc_Asamblea nAsamblea = (uc_Asamblea)d;

            nAsamblea.AsambleaId = Convert.ToInt32(e.NewValue);
        }