private void Editar_Click(object sender, RoutedEventArgs e)
        {
            if (!MetodosGestion.IsOpen(p))
            {
                if (dataGridProveedores.SelectedItem != null)
                {
                    DataRowView dd = (DataRowView)dataGridProveedores.SelectedItem;
                    int         id = dd.Row.Field <int>("Id_Proveedor");


                    p = new ProveedoresEdicion(id);
                    RefreshListEvent += new RefreshList(Actualizar);
                    p.Title           = "Editar Proveedor";
                    p.Owner           = System.Windows.Application.Current.MainWindow;
                    p.ActualizarLista = RefreshListEvent;
                    p.Show();
                }
            }
        }