public async Task DeleteSelectedItemAsync()
        {
            Favorites.Remove(SelectedFavorite);

            var repo = new FavoritesRepository();
            bool saveOk = await repo.SaveAsync(Favorites.ToList());
        }
        public async Task AddItemAsync()
        {
            var newItem = new Favorite()
                              {
                                  HostName = this.HostName,
                                  PortNumber = this.PortNumber
                              };

            Favorites.Add(newItem);

            var repo = new FavoritesRepository();
            bool saveOk = await repo.SaveAsync(Favorites.ToList());
        }
 public async Task LoadFavorites()
 {
     var repo = new FavoritesRepository();
     var items = await repo.LoadAsync();
     Favorites = new ObservableCollection<Favorite>(items);
 }