private void BT_Enregistrer_Click(object sender, EventArgs e)
        {
            if (LV_Livre.SelectedItems.Count == 0)
            {
                FRM_SelecSVP _SelecSVP = new FRM_SelecSVP();
                _SelecSVP.ShowDialog();
            }
            else
            {
                try
                {
                    // Demande du chemin d'accès à l'utilisateur
                    FolderBrowserDialog fbd = new FolderBrowserDialog();
                    if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        //Récupére dans une collection toute les index selectionnés
                        ListView.SelectedIndexCollection indexes = LV_Livre.SelectedIndices;

                        foreach (Livres index in GetAllSelectedLivres())
                        {
                            // On vien récupéré l'ID du livre selectionné dans la ListView et son chemin_livre
                            string selected = cheminLivre[LV_Livre.SelectedIndices[0]];
                            //PPE.Chemin ch = new Chemin(selected);

                            //ch.Serialize();

                            // Récupére le chemin d'accès dans une variable string
                            string chemin = fbd.SelectedPath;

                            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

                            // Récupére le nom de l'auteur du livre pour nommer le dossier principale
                            string MainFolderName = "A faire";

                            //Fusionne le chemin d'accès au dossier principale dans une variable MainFolder
                            string MainFolder = @"" + chemin + "\\" + MainFolderName;

                            //Récupére le nom du livre pour nommer le sous-dossier
                            string SubFolderName = index.titre;

                            //Fusionne le MainFolder avec le sous-dossier
                            string pathString = System.IO.Path.Combine(MainFolder, SubFolderName);
                            System.IO.Directory.CreateDirectory(pathString);


                            //Utilise toutes les variables précédemment créer pour creer les dossiers, sous dossier et les fichiers.epub
                            string path = @"" + chemin + "\\" + MainFolderName + "\\" + SubFolderName + "\\" + index.FileName + "";

                            if (File.Exists(path))
                            {
                                FRM_LivreExisteDeja _LivreExisteDeja = new FRM_LivreExisteDeja();
                                _LivreExisteDeja.ShowDialog();
                            }
                            else
                            {
                                // Copie du fichier source et de son contenu dans le nouveau chemin
                                string sourcefile      = index.full_chemin_livre;
                                string destinationfile = @"" + path + "";
                                File.Copy(sourcefile, destinationfile);

                                // Confirmation de l'enregistrement
                                PPE.FRM_SaveConfirm saveconfirm = new PPE.FRM_SaveConfirm();
                                saveconfirm.ShowDialog();
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    FRM_Erreur _Erreur = new FRM_Erreur();
                    _Erreur.ShowDialog();
                    ExceptionHandler.ExeptionCatch(ex);
                }
            }
        }
        private void B_EnregistrerDossierUnique_Click(object sender, EventArgs e)
        {
            try
            {
                // L'utilisateur selectionne le chemin d'enregistrement
                FolderBrowserDialog fbd = new FolderBrowserDialog();
                // On vérifie si le chemin choisi est bien valide
                if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    // Pour chaque item dans la listview
                    foreach (ListViewItem item in LV_Livre.Items)
                    {
                        // Chaque objet va être considerer comme selectionné
                        item.Selected = true;
                        // On récupére dans une collection indexes chaque indice de chaque item ayant été selectionné
                        ListView.SelectedIndexCollection indexes = LV_Livre.SelectedIndices;
                        // Pour chaque indice présent dans la collection indexes
                        foreach (Livres index in GetAllSelectedLivres())
                        {
                            // On vien récupéré l'ID du livre selectionné dans la ListView et son chemin_livre
                            string selected = cheminLivre[LV_Livre.SelectedIndices[0]];
                            //PPE.Chemin ch = new Chemin(selected);

                            //ch.Serialize();

                            // Récupére le chemin d'accès dans une variable string
                            string chemin = fbd.SelectedPath;

                            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

                            // Récupére le nom de l'auteur du livre pour nommer le dossier principale
                            string MainFolderName = "A faire";

                            //Fusionne le chemin d'accès au dossier principale dans une variable MainFolder
                            string MainFolder = @"" + chemin + "\\" + MainFolderName;

                            //Récupére le nom du livre pour nommer le sous-dossier
                            string SubFolderName = index.titre;

                            //Fusionne le MainFolder avec le sous-dossier
                            string pathString = System.IO.Path.Combine(MainFolder, SubFolderName);
                            System.IO.Directory.CreateDirectory(pathString);

                            //Utilise toutes les variables précédemment créer pour creer les dossiers, sous dossier et les fichiers.epub
                            string path = @"" + chemin + "\\" + MainFolderName + "\\" + SubFolderName + "\\" + index.FileName + "";

                            // Si le livre existe déjà dans le chemin d'enregistrement, on affiche un message
                            if (File.Exists(path))
                            {
                                FRM_LivreExisteDeja _LivreExisteDeja = new FRM_LivreExisteDeja();
                                _LivreExisteDeja.ShowDialog();
                            }
                            else
                            {
                                // Copie du fichier source et de son contenu dans le nouveau chemin
                                string sourcefile      = index.full_chemin_livre;
                                string destinationfile = @"" + path + "";
                                File.Copy(sourcefile, destinationfile);

                                // Confirmation de l'enregistrement
                                PPE.FRM_SaveConfirm saveconfirm = new PPE.FRM_SaveConfirm();
                                saveconfirm.ShowDialog();
                            }
                        }
                    }
                }
            }

            catch (Exception er)
            {
                FRM_Erreur _Erreur = new FRM_Erreur();
                _Erreur.ShowDialog();
                ExceptionHandler.ExeptionCatch(er);
            }
        }