private void DeleteSelectedClient()
 {
     if (!DBContext.IsOnline)
     {
         MessageBox.Show("Application is in offline mode.", "Offline Mode");
         return;
     }
     // Prevents application from crashing whenever someone tries to delete a client, when there's none selected. TODO: Hide the buttons when there's no client selected after updates.
     if (_selectedCustomerCompany != null)
     {
         var confirmResult = MessageBox.Show("Bent u zeker dat u " + SelectedCustomerCompany.NameCompany.ToString() + " wenst te verwijderen?", "Klanten verwijder waarchuwing", MessageBoxButton.YesNo);
         if (confirmResult == MessageBoxResult.Yes)
         {
             SelectedCustomerCompany.IsArchived = true;
             RaisePropertyChanged("SelectedCustomerCompany");
             SelectedCustomerCompany.Update();
             SelectedCustomerCompany = null;
             SelectedFestival        = null;
             RefreshView();
         }
     }
 }
 private void UpdateSelectedClient()
 {
     SelectedCustomerCompany.Update();
 }