示例#1
0
 private void TrackAnalytics()
 {
     Analytics.TrackEvent("DisplayedTimeStyle " + DisplayedTimeStyle.ToString());
     Analytics.TrackEvent("ThemeValue " + ThemeHelper.RootTheme.ToString());
     Analytics.TrackEvent("PinRecycleBinToSideBar " + PinRecycleBinToSideBar.ToString());
     Analytics.TrackEvent("ShowFileExtensions " + ShowFileExtensions.ToString());
     Analytics.TrackEvent("ShowConfirmDeleteDialog " + ShowConfirmDeleteDialog.ToString());
     Analytics.TrackEvent("IsAcrylicDisabled " + IsAcrylicDisabled.ToString());
     Analytics.TrackEvent("ShowFileOwner " + ShowFileOwner.ToString());
     Analytics.TrackEvent("IsHorizontalTabStripEnabled " + IsHorizontalTabStripEnabled.ToString());
     Analytics.TrackEvent("IsVerticalTabFlyoutEnabled " + IsVerticalTabFlyoutEnabled.ToString());
     Analytics.TrackEvent("AreHiddenItemsVisible " + AreHiddenItemsVisible.ToString());
     Analytics.TrackEvent("ShowDrivesWidget " + ShowDrivesWidget.ToString());
     Analytics.TrackEvent("ListAndSortDirectoriesAlongsideFiles " + ListAndSortDirectoriesAlongsideFiles.ToString());
 }
示例#2
0
        public SettingsViewModel()
        {
            _roamingSettings = ApplicationData.Current.RoamingSettings;

            DetectDateTimeFormat();
            PinSidebarLocationItems();
            DetectRecycleBinPreference();
            DetectQuickLook();
            DetectGridViewSize();
            DrivesManager = new DrivesManager();

            //DetectWSLDistros();
            TerminalController = new TerminalController();

            // Send analytics
            Analytics.TrackEvent("DisplayedTimeStyle " + DisplayedTimeStyle.ToString());
            Analytics.TrackEvent("ThemeValue " + ThemeHelper.RootTheme.ToString());
            Analytics.TrackEvent("PinRecycleBinToSideBar " + PinRecycleBinToSideBar.ToString());
            Analytics.TrackEvent("ShowFileExtensions " + ShowFileExtensions.ToString());
            Analytics.TrackEvent("ShowConfirmDeleteDialog " + ShowConfirmDeleteDialog.ToString());
            Analytics.TrackEvent("IsAcrylicDisabled " + IsAcrylicDisabled.ToString());
            Analytics.TrackEvent("ShowFileOwner " + ShowFileOwner.ToString());
            Analytics.TrackEvent("IsHorizontalTabStripEnabled " + IsHorizontalTabStripEnabled.ToString());
            Analytics.TrackEvent("IsVerticalTabFlyoutEnabled " + IsVerticalTabFlyoutEnabled.ToString());
            Analytics.TrackEvent("AreHiddenItemsVisible " + AreHiddenItemsVisible.ToString());
            Analytics.TrackEvent("ShowDrivesWidget " + ShowDrivesWidget.ToString());
            Analytics.TrackEvent("ListAndSortDirectoriesAlongsideFiles " + ListAndSortDirectoriesAlongsideFiles.ToString());

            // Load the supported languages
            var supportedLang = ApplicationLanguages.ManifestLanguages;

            DefaultLanguages = new ObservableCollection <DefaultLanguageModel> {
                new DefaultLanguageModel(null)
            };
            foreach (var lang in supportedLang)
            {
                DefaultLanguages.Add(new DefaultLanguageModel(lang));
            }
        }