Пример #1
0
        public FindFilesSettingsSection(FindFilesSettings findFilesSettings)
        {
            _view = new Lazy <FindFilesSettingsSectionView>(() => new FindFilesSettingsSectionView {
                DataContext = this
            });
            _openIndexingOptionsCommand = new DelegateCommand(OpenIndexingOptions);

            Settings = findFilesSettings;
        }
Пример #2
0
 public SettingsData()
 {
     GeneralSettings             = new GeneralSettings();
     ApplicationLauncherSettings = new ApplicationLauncherSettings();
     WebQuerySettings            = new[]
     {
         new WebQuerySettings
         {
             IsEnabled  = true,
             IsFallback = true,
             Verb       = "google",
             Query      = "https://www.google.com/search?q={0}",
             IconPath   = "pack://application:,,,/Images/Google32.png",
         },
         new WebQuerySettings
         {
             IsEnabled = true,
             Verb      = "bing",
             Query     = "http://www.bing.com/search?q={0}",
             IconPath  = "pack://application:,,,/Images/Bing32.png",
         },
         new WebQuerySettings
         {
             IsEnabled = true,
             Verb      = "duck",
             Query     = "https://duckduckgo.com/?q={0}",
             IconPath  = "pack://application:,,,/Images/Duck32.png",
         },
         new WebQuerySettings
         {
             IsEnabled = true,
             Verb      = "wiki",
             Query     = "http://en.wikipedia.org/wiki/Special:Search?search={0}&go=Go",
             IconPath  = "pack://application:,,,/Images/Wiki32.png",
         },
         new WebQuerySettings
         {
             IsEnabled = true,
             Verb      = "imdb",
             Query     = "http://www.imdb.com/find?s=all&q={0}",
             IconPath  = "pack://application:,,,/Images/Imdb32.png",
         },
     };
     FindFilesSettings = new FindFilesSettings();
 }