Пример #1
0
 public static void SetUserLocation(string address)
 {
     SettingsHelper.SetSetting(SettingKey.UserLocation.ToString(), address);
 }
Пример #2
0
 public static Windows.Foundation.Size GetWindowsResolution()
 {
     return(SettingsHelper.GetSetting <Windows.Foundation.Size>(SettingKey.WindowsResolution.ToString()));
 }
Пример #3
0
 public static void SetDrawPosition(string drawPosition)
 {
     SettingsHelper.SetSetting(SettingKey.DrawPosition.ToString(), drawPosition);
 }
Пример #4
0
 public static string BingGetLanguage()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.BingLanguage.ToString()));
 }
Пример #5
0
 public static void SetWindowResolution(Windows.Foundation.Size size)
 {
     SettingsHelper.SetSetting(SettingKey.WindowsResolution.ToString(), size);
 }
Пример #6
0
 /// <summary>
 /// Set save mode
 /// 1: Save in the same folder
 /// 2: Choose where to save
 /// 3: Save in specific folder
 /// </summary>
 /// <param name="saveMode">save mode</param>
 /// <param name="path">path to specific folder. Apply for 3</param>
 /// <param name="token">token to access later. Apply for 3</param>
 public static void SetSaveMode(int saveMode, string path = null, string token = null)
 {
     SettingsHelper.SetSetting(SettingKey.SaveMode.ToString(), saveMode);
     SettingsHelper.SetSetting(SettingKey.SavePath.ToString(), path);
     SettingsHelper.SetSetting(SettingKey.SaveToken.ToString(), token);
 }
Пример #7
0
 public static void SetImageService(int service)
 {
     SettingsHelper.SetSetting(SettingKey.ImageService.ToString(), service);
 }
Пример #8
0
 public static string GetNote()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.Note.ToString()));
 }
Пример #9
0
 public static void SetRssLink(string link)
 {
     SettingsHelper.SetSetting(SettingKey.RssLink.ToString(), link);
 }
Пример #10
0
 public static string GetOfflineQuote()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.OfflineQuote.ToString()));
 }
Пример #11
0
 public static void SetNote(string note)
 {
     SettingsHelper.SetSetting(SettingKey.Note.ToString(), note);
 }
Пример #12
0
 public static void SetOfflineQuote(string quote)
 {
     SettingsHelper.SetSetting(SettingKey.OfflineQuote.ToString(), quote);
 }
Пример #13
0
 public static bool BingGetShowInfo()
 {
     return(SettingsHelper.GetSetting <bool>(SettingKey.BingIsShowInfo.ToString()));
 }
Пример #14
0
 public static void BingSetShowInfo(bool isShow)
 {
     SettingsHelper.SetSetting(SettingKey.BingIsShowInfo.ToString(), isShow);
 }
Пример #15
0
 public static string GetUserLocation()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.UserLocation.ToString()));
 }
Пример #16
0
 public static string GetRssLink()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.RssLink.ToString()));
 }
Пример #17
0
 public static int GetSaveMode()
 {
     return(SettingsHelper.GetSetting <int>(SettingKey.SaveMode.ToString()));
 }
Пример #18
0
 public static void SetRssItemNum(int num)
 {
     SettingsHelper.SetSetting(SettingKey.RssItemNum.ToString(), num);
 }
Пример #19
0
 public static string GetSaveToken()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.SaveToken.ToString()));
 }
Пример #20
0
        public static int GetRssItemNum()
        {
            int result = SettingsHelper.GetSetting <int>(SettingKey.RssItemNum.ToString());

            return(result == 0 ? 3 : result);
        }
Пример #21
0
 public static int GetImageService()
 {
     return(SettingsHelper.GetSetting <int>(SettingKey.ImageService.ToString()));
 }
Пример #22
0
 public static void BingSetLanguage(string bingLanguageCode)
 {
     SettingsHelper.SetSetting(SettingKey.BingLanguage.ToString(), bingLanguageCode);
 }