예제 #1
0
        private void btnRegistrarDelegacion_Click(object sender, RoutedEventArgs e)
        {
            RegistrarDelegacion registrarDelegacion = new RegistrarDelegacion(0, this);

            GridDelegacion.Children.Clear();
            GridDelegacion.Children.Add(registrarDelegacion);
        }
예제 #2
0
        private void Button_Modificar(object sender, RoutedEventArgs e)
        {
            int idDelegacion = (int)((Button)sender).CommandParameter;

            RegistrarDelegacion registrarDelegacion = new RegistrarDelegacion(idDelegacion, this);

            GridDelegacion.Children.Clear();
            GridDelegacion.Children.Add(registrarDelegacion);

            LlenarTablaDelegacion();
        }