Exemplo n.º 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();
 }
Exemplo n.º 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();
     }
 }