public ApplicationLauncherSettingsSection(ApplicationLauncherSettings applicationLauncherSettings)
        {
            _view = new Lazy <ApplicationLauncherSettingsSectionView>(() => new ApplicationLauncherSettingsSectionView {
                DataContext = this
            });
            _addIndexLocationCommand    = new DelegateCommand(AddIndexLocation);
            _removeIndexLocationCommand = new DelegateCommand(RemoveIndexLocation, CanRemoveIndexLocation);

            Settings = applicationLauncherSettings;

            IndexLocations        = new ObservableCollection <string>(Settings.IndexLocations);
            SelectedIndexLocation = IndexLocations.FirstOrDefault();
        }
Exemplo n.º 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();
 }