private void Add(object sender, RoutedEventArgs e)
        {
            FicheInfo fenetre = new FicheInfo();

            if ((bool)fenetre.ShowDialog())
            {
                listing.Add(fenetre.ObtenirHeroIntroduit());
            }
        }
        private void btnModify_Click(object sender, RoutedEventArgs e)
        {
            DataGrid DG = datagrid1;

            if ((DG.SelectedItems.Count == 1) && (DG != null))
            {
                Hero hero = new Hero("", "", "", "", "", "", "");
                foreach (var row in DG.SelectedItems)
                {
                    hero = (Hero)row;
                }
                FicheInfo fenetre = new FicheInfo(hero, true);


                if (fenetre.ShowDialog() == true)
                {
                    Hero tmp = new Hero("", "", "", "", "", "", "");
                    tmp = fenetre.Individu;
                    listing.Remove(hero);
                    listing.Add(tmp);
                }
            }
        }
        private void show(object sender, RoutedEventArgs e)
        {
            if (datagrid1.SelectedItems.Count == 1)
            {
                string    select = datagrid1.SelectedItem.ToString();
                string [] text;
                Hero      selected = new Hero("", "", "", "", "", "", "");
                for (int i = 0; i < 3; i++)
                {
                    text  = select.Split('#');
                    text2 = text[i].ToString();;
                }
                hero = text2;

                foreach (Hero item in datagrid1.SelectedItems)
                {
                    selected = item;
                }
                Save_show();
                FicheInfo window = new FicheInfo(selected);
                window.ShowDialog();
            }
        }
 private void Ajouter_hero(object sender, RoutedEventArgs e)
 {
     FicheInfo windowadd = new FicheInfo();
 }