public override void OK() { ISettingStore settings = Core.SettingStore; int lastMethod = BookmarkService.DownloadMethod; BookmarkService service = FavoritesPlugin._bookmarkService; if (_idleButton.Checked) { BookmarkService.DownloadMethod = 0; if (lastMethod != 0) { service.SynchronizeBookmarks(); } } else if (_immediateButton.Checked) { BookmarkService.DownloadMethod = 1; if (lastMethod != 1) { service.SynchronizeBookmarks(); } } else { BookmarkService.DownloadMethod = 2; } CookiesManager.SetUserCookieProviderName(typeof(FavoriteJob), _cookieProviderSelector.SelectedProfileName); IResource res = (IResource)_bookmarkFoldersBox.SelectedItem; if (res != null) { settings.WriteInt("Favorites", "CatAnnRoot", res.Id); } }