public PlacesWindowVM(IErrorChecker checker, MainWindowVM mainWindowVM)
 {
     //LoadDatabase();
     _mainWindowVM = mainWindowVM;
     foreach (CityVM c in _mainWindowVM.Cities)
     {
         Cities.Add(c);
     }
     //foreach(PlaceVM p in _mainWindowVM.Places.Where(x=>x.Id==))
     foreach (CustomerPlace cp in _mainWindowVM.CustomersPlaces.Where(x => x.CustomerId == (_mainWindowVM.SelectedCustomer.Id)))
     {
         Places.Add(_mainWindowVM.Places.First(x => x.Id == cp.CustomerId));
     }
     Places.OrderByDescending(x => x.Id);
     _checker = checker;
     ClearText();
 }
 public MainWindowVM(IErrorChecker checker)
 {
     LoadDatabase();
     _checker = checker;
     ClearText();
 }