private void SaveDoNotShowPreviewWindowSetting(bool doNotshow)
 {
     _uiContext.UserSettingsManager.ApplyShowPreviewSetting(!doNotshow);
     RegistrySettingUtility.SetBooleanSetting(
         Constants.DoNotShowPreviewWindowRegistryName,
         doNotshow);
 }
예제 #2
0
        private void CheckboxPrerelease_CheckChanged(object sender, EventArgs e)
        {
            if (!_initialized)
            {
                return;
            }

            RegistrySettingUtility.SetBooleanSetting(
                Constants.IncludePrereleaseRegistryName,
                _topPanel.CheckboxPrerelease.IsChecked == true);
            SearchPackagesAndRefreshUpdateCount(_windowSearchHost.SearchQuery.SearchString, useCache: false);
        }
예제 #3
0
 private void OnDoNotShowAgainClick(object sender, RoutedEventArgs e)
 {
     RegistrySettingUtility.SetBooleanSetting(Constants.SuppressUpgradePackagesConfigName, true);
     MigratorBar.Visibility = Visibility.Collapsed;
 }
예제 #4
0
 private void SuppressDisclaimerChecked(object sender, RoutedEventArgs e)
 {
     _legalDisclaimer.Visibility = Visibility.Collapsed;
     RegistrySettingUtility.SetBooleanSetting(Constants.SuppressUIDisclaimerRegistryName, true);
 }
예제 #5
0
 public static void SaveDoNotShowPromptState(bool doNotshow)
 {
     RegistrySettingUtility.SetBooleanSetting(
         Constants.DoNotShowDeprecatedFrameworkWindowRegistryName,
         doNotshow);
 }