Exemple #1
0
 public static void ClearCookies(WPFBrowserView wpfBrowserView, string registryName = null)
 {
     if (!string.IsNullOrEmpty(registryName))
     {
         RegistryHelpers.DeleteSetting(registryName + "_" + MICROSOFT_COOKIES_URL);
     }
     if (wpfBrowserView.Browser != null && wpfBrowserView.Browser.CookieStorage != null)
     {
         int numberOfDeletedCookies = wpfBrowserView.Browser.CookieStorage.DeleteAll();
         wpfBrowserView.Browser.CookieStorage.Save();
         MessageBox.Show(numberOfDeletedCookies.ToString() + " cookies have been deleted.");
     }
 }
 public static void Reset(string featureId)
 {
     RegistryHelpers.DeleteSetting("IsCommunity");
     RegistryHelpers.DeleteSetting("Trial_" + TrialHelpers.TRIAL_VERSION_IDENTIFIER + "_" + featureId);
     RegistryHelpers.DeleteSetting("TrialMessageLastDisplayDate_" + TrialHelpers.TRIAL_VERSION_IDENTIFIER);
 }