private void Listado_Documentos_Closed(object sender, EventArgs e)
        {
            Listado_Documentos ventana = sender as Listado_Documentos;

            // (refrescar)
            this.IsEnabled = true;
            //QuitarEfecto(this);

            Buscar_Locales();
        }
        private void btn_detale_Click(object sender, RoutedEventArgs e)
        {
            // Se debe capturar el código
            DataRowView row = (DataRowView)((Button)e.Source).DataContext;

            string codigo = (String)row["id"].ToString();
            string tipo   = (String)row["tipo"].ToString();

            if (!Listado_Documentos._activo_form)
            {
                Listado_Documentos frm2 = new Listado_Documentos(codigo, tipo);
                frm2.Owner = this;
                //AplicarEfecto(this);
                this.IsEnabled = false;
                frm2.Show();
                Listado_Documentos._activo_form = true;
                frm2.Closed += Listado_Documentos_Closed;
            }
        }