private void DownloadFavorites(object sender, EventArgs e)
        {
            lblStatus.Text = string.Empty;


            string collection = txtCollection.Text;
            string web        = cbSite.SelectedItem.ToString();
            string list       = cbList.SelectedItem.ToString();

            InitializeWS();
            List <FavoritesEntry> ClientFavs = FavoritesEntry.GetLocalFavorites();

            List <FavoritesEntry> SPFavs = new List <FavoritesEntry>();

            SPFavs.AddRange(FavoritesEntry.Deserialize(fws.GetRemoteFavorites(collection, web, list)));


            foreach (FavoritesEntry SPFav in SPFavs)
            {
                foreach (FavoritesEntry ClientFav in ClientFavs)
                {
                    if (ClientFav.Url == SPFav.Url)
                    {
                        FavoritesEntry.DeleteLocalFavorite(ClientFav);
                        break;
                    }
                }

                FavoritesEntry.CreateLocalFavorite(SPFav);
            }

            lblStatus.Text = "Favorites have been downloaded";
        }
        private void UploadFavorites(object sender, EventArgs e)
        {
            lblStatus.Text = string.Empty;

            string collection = txtCollection.Text;
            string web        = cbSite.SelectedItem.ToString();
            string list       = cbList.SelectedItem.ToString();

            InitializeWS();

            List <FavoritesEntry> items = FavoritesEntry.GetLocalFavorites();

            fws.UploadFavorites(collection, web, list, FavoritesEntry.Serialize(items.ToArray()));

            lblStatus.Text = "Favorites have been uploaded";
        }