Example #1
0
 public static void SetUserLocation(string address)
 {
     SettingsHelper.SetSetting(SettingKey.UserLocation.ToString(), address);
 }
Example #2
0
 public static Windows.Foundation.Size GetWindowsResolution()
 {
     return(SettingsHelper.GetSetting <Windows.Foundation.Size>(SettingKey.WindowsResolution.ToString()));
 }
Example #3
0
 public static void SetDrawPosition(string drawPosition)
 {
     SettingsHelper.SetSetting(SettingKey.DrawPosition.ToString(), drawPosition);
 }
Example #4
0
 public static string BingGetLanguage()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.BingLanguage.ToString()));
 }
Example #5
0
 public static void SetWindowResolution(Windows.Foundation.Size size)
 {
     SettingsHelper.SetSetting(SettingKey.WindowsResolution.ToString(), size);
 }
Example #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);
 }
Example #7
0
 public static void SetImageService(int service)
 {
     SettingsHelper.SetSetting(SettingKey.ImageService.ToString(), service);
 }
Example #8
0
 public static string GetNote()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.Note.ToString()));
 }
Example #9
0
 public static void SetRssLink(string link)
 {
     SettingsHelper.SetSetting(SettingKey.RssLink.ToString(), link);
 }
Example #10
0
 public static string GetOfflineQuote()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.OfflineQuote.ToString()));
 }
Example #11
0
 public static void SetNote(string note)
 {
     SettingsHelper.SetSetting(SettingKey.Note.ToString(), note);
 }
Example #12
0
 public static void SetOfflineQuote(string quote)
 {
     SettingsHelper.SetSetting(SettingKey.OfflineQuote.ToString(), quote);
 }
Example #13
0
 public static bool BingGetShowInfo()
 {
     return(SettingsHelper.GetSetting <bool>(SettingKey.BingIsShowInfo.ToString()));
 }
Example #14
0
 public static void BingSetShowInfo(bool isShow)
 {
     SettingsHelper.SetSetting(SettingKey.BingIsShowInfo.ToString(), isShow);
 }
Example #15
0
 public static string GetUserLocation()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.UserLocation.ToString()));
 }
Example #16
0
 public static string GetRssLink()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.RssLink.ToString()));
 }
Example #17
0
 public static int GetSaveMode()
 {
     return(SettingsHelper.GetSetting <int>(SettingKey.SaveMode.ToString()));
 }
Example #18
0
 public static void SetRssItemNum(int num)
 {
     SettingsHelper.SetSetting(SettingKey.RssItemNum.ToString(), num);
 }
Example #19
0
 public static string GetSaveToken()
 {
     return(SettingsHelper.GetSetting <string>(SettingKey.SaveToken.ToString()));
 }
Example #20
0
        public static int GetRssItemNum()
        {
            int result = SettingsHelper.GetSetting <int>(SettingKey.RssItemNum.ToString());

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