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";
        }
        public void UploadFavorites(string SiteCollection, string SharepointSite, string List, string Favorites)
        {
            FavoritesLogic fs = new FavoritesLogic();

            fs.UploadItems(SiteCollection, SharepointSite, List, FavoritesEntry.Deserialize(Favorites));
        }