public MainWindow()
        {
            InitializeComponent();
            IEnumerable <SalleEntity> mySalles = SalleService.LoadSalleList();

            SalleListView.ItemsSource = mySalles;
        }
 private void ResetCodeButton_Click(object sender, RoutedEventArgs e)
 {
     if (SalleListView.SelectedItems.Count > 0)
     {
         MessageBoxResult result = MessageBox.Show("Changer le Digicode de cette(ces) salle(s)?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question);
         if (result == MessageBoxResult.Yes)
         {
             foreach (SalleEntity salle in SalleListView.SelectedItems)
             {
                 salle.ResetCode();
             }
             SalleListView.ItemsSource = SalleService.LoadSalleList();
         }
     }
     else
     {
         MessageBox.Show("Pas de salle séléctionnée");
     }
 }