private void Bt_supprimer_Click(object sender, EventArgs e)
        {
            if (lbDemandeur.SelectedIndex > -1)
            {
                if (lbDateDemande.SelectedIndex > -1)
                {
                    int ligneSupprimer = Connection.SupprimerLigneFrais(this.lbDemandeur.Text, this.lbDateDemande.Text);
                    int actionAjouter  = Connection.ActionAjouter(this.lbDemandeur.Text, this.lbDateDemande.Text, this.bt_supprimer.Text);

                    if (ligneSupprimer != 0)
                    {
                        MessageBox.Show("Vous avez supprimé la demande de remboursement de frais du " + this.lbDateDemande.Text);

                        // Mise a jour des listes
                        this.ChargerLesFrais();
                        this.ChargerLesDemandeurs();

                        // Efface les informations
                        this.lbDateDemande.Items.Clear();
                        this.ClearInformation();
                    }
                    else
                    {
                        MessageBox.Show("Une erreur de validation s'est produite.");
                    }
                }
            }
            else
            {
                MessageBox.Show("Aucune demande de remboursement de notes de frais n'a était effectuée.", "Impossible de supprimer", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void LvFrais_SelectedIndexChanged(object sender, EventArgs e)
        {
            string mail = "";
            string date = "";

            foreach (int index in this.lvFrais.SelectedIndices)
            {
                mail = this.lvFrais.Items[index].Group.Name;
                date = this.lvFrais.Items[index].Text;
            }

            DialogResult resultat = MessageBox.Show("Voulez-vous annuler la validation de la ligne de frais de " + mail + " faite le " + date + " ?", "Annulation de la demande", MessageBoxButtons.YesNo);

            if (resultat == DialogResult.Yes)
            {
                int ligneAJouter  = Connection.AnnuleLigneFrais(mail, date);
                int actionAjouter = Connection.ActionAjouter(mail, date, "Annuler");

                if (ligneAJouter != 0)
                {
                    MessageBox.Show("L'annulation a bien été bien prise en compte", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    //actualisation des liste et du contenue afficher
                    this.InitiliseList();
                    this.SetListView();
                }
                else
                {
                    MessageBox.Show("Une erreur s'est produite");
                }
            }
        }
        /// <summary>
        /// Click pour valider les frais de la ligne en cour
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnValider_Click(object sender, EventArgs e)
        {
            if (lbDemandeur.SelectedIndex > -1)
            {
                if (lbDateDemande.SelectedIndex > -1)
                {
                    DialogResult resultat = MessageBox.Show("Confirmer la demande d'un demande d'un montant de " + this.txtTotalValide.Text + "€ ?", "Validation", MessageBoxButtons.YesNo);
                    if (resultat == DialogResult.Yes)
                    {
                        int ligneAJouter  = Connection.ValidationLigneFrais((long)this.numKmValide.Value, this.numPeageValide.Value, this.numRepasValide.Value, this.numHebergementValide.Value, this.lbDemandeur.Text, this.lbDateDemande.Text);
                        int actionAjouter = Connection.ActionAjouter(this.lbDemandeur.Text, this.lbDateDemande.Text, this.btnValider.Text);

                        if (ligneAJouter != 0)
                        {
                            MessageBox.Show("La validation a bien été bien prise en compte");

                            // Mise a jour des listes
                            this.ChargerLesFrais();
                            this.ChargerLesDemandeurs();

                            // Efface les informations
                            this.lbDateDemande.Items.Clear();
                            this.ClearInformation();
                        }
                        else
                        {
                            MessageBox.Show("Une erreur de validation s'est produite.");
                        }
                    }
                }
            }
            else
            {
                MessageBox.Show("Aucune demande de remboursement de notes de frais n'a était effectuée.", "Validation impossible", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }