private void Modif_Ver_Local_Closed(object sender, EventArgs e)
        {
            Modif_Ver_Local ventana = sender as Modif_Ver_Local;

            // (refrescar)
            QuitarEfecto(this);
        }
        private void Modif_Ver_Local_Closed(object sender, EventArgs e)
        {
            Modif_Ver_Local ventana = sender as Modif_Ver_Local;

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

            Buscar_Locales();
        }
        /*private void btn_nuevo_Click(object sender, RoutedEventArgs e)
         * {
         * }*/

        /*private void btncontrato_Click(object sender, RoutedEventArgs e)
         * {
         *
         * }*/

        /*private void btn_planos_Click(object sender, RoutedEventArgs e)
         * {
         *
         * }*/

        private void btn_editar_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 (!Modif_Ver_Local._activo_form)
            {
                Modif_Ver_Local frm2 = new Modif_Ver_Local(codigo, tipo);
                frm2.Owner = this;
                AplicarEfecto(this);
                frm2.Show();
                Modif_Ver_Local._activo_form = true;
                frm2.Closed += Modif_Ver_Local_Closed;
            }
        }