Пример #1
0
 private void FixIe()
 {
     try
     {
         var userRegisterProvider = new InternetSettingProvider();
         userRegisterProvider.SetCertificateVerificationChecked(true);
         userRegisterProvider.SetSSLAndTSLState(false);
         userRegisterProvider.SetInternetProtectLevelNormal();
         LogHelper.Log($@"{true}{DataSepartor}{string.Empty}");
     }
     catch (Exception e)
     {
         LogHelper.Log($@"{false}{DataSepartor}{e.Message}");
     }
     finally
     {
         Environment.Exit(0);
     }
 }
Пример #2
0
        private void SetIeSecurity_OnClick(object sender, RoutedEventArgs e)
        {
            var userRegisterProvider = new InternetSettingProvider();

            userRegisterProvider.SetInternetProtectLevelNormal();
        }