示例#1
0
 public OptionPage()
 {
     settingStoreProvider = new SettingStoreProvider("PlayYouTube");
     if (settingStoreProvider.Exist("SafeSearchLevel"))
         optionsManager =
             new OptionsManager(
                 (SafeSearchLevel.Enum)
                     Enum.Parse(typeof(SafeSearchLevel.Enum), settingStoreProvider.Get("SafeSearchLevel")));
     else
         optionsManager = new OptionsManager();
 }
示例#2
0
 public OptionPage()
 {
     settingStoreProvider = new SettingStoreProvider("PlayYouTube");
     if (settingStoreProvider.Exist("SafeSearchLevel"))
     {
         optionsManager =
             new OptionsManager(
                 (SafeSearchLevel.Enum)
                 Enum.Parse(typeof(SafeSearchLevel.Enum), settingStoreProvider.Get("SafeSearchLevel")));
     }
     else
     {
         optionsManager = new OptionsManager();
     }
 }
示例#3
0
 internal void Initialize(OptionsManager optionsManager)
 {
     this.optionsManager = optionsManager;
     SearchEngineCB.DataSource = Enum.GetValues(typeof(SafeSearchLevel.Enum));
 }
 public MainWindowViewModel(OptionsManager options)
 {
     this.options = options;
     GoCommand = new RelayCommand(Search, arg => true);
 }
示例#5
0
 internal void Initialize(OptionsManager options)
 {
     var window = (MainWindowControl)this.Content;
     window.DataContext = new MainWindowViewModel(options);
 }
 internal void Initialize(OptionsManager optionsManager)
 {
     this.optionsManager       = optionsManager;
     SearchEngineCB.DataSource = Enum.GetValues(typeof(SafeSearchLevel.Enum));
 }