private void GetOffresRegion()
 {
     if (CurrentRegion.Id != 0 && CurrentRegion != null)
     {
         ListeOffresWindow win = new ListeOffresWindow(CurrentRegion);
         win.Owner = Application.Current.MainWindow;
         win.ShowDialog();
     }
     else
     {
         MessageBox.Show("D'abord choisissez une Région", "Avertissement", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void GetOffresType()
 {
     if (CurrentType.Id != 0 && CurrentType != null)
     {
         ListeOffresWindow win = new ListeOffresWindow(CurrentType);
         win.Owner = Application.Current.MainWindow;
         win.ShowDialog();
     }
     else
     {
         MessageBox.Show("D'abord choisissez un Type Immobilier", "Avertissement", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 public void GetListeOffresWindow()
 {
     if (CurrentClient.Id != 0 && CurrentClient != null)
     {
         ListeOffresWindow win = new ListeOffresWindow(CurrentClient);
         win.Owner = Application.Current.MainWindow;
         win.ShowDialog();
     }
     else
     {
         MessageBox.Show("D'abord choisissez un Client", "Avertissement", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }