Пример #1
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);
 }
Пример #2
0
 public static void SetImageService(int service)
 {
     SettingsHelper.SetSetting(SettingKey.ImageService.ToString(), service);
 }
Пример #3
0
 public static void SetDrawPosition(string drawPosition)
 {
     SettingsHelper.SetSetting(SettingKey.DrawPosition.ToString(), drawPosition);
 }
Пример #4
0
 public static void SetUserLocation(string address)
 {
     SettingsHelper.SetSetting(SettingKey.UserLocation.ToString(), address);
 }
Пример #5
0
 public static void SetRssItemNum(int num)
 {
     SettingsHelper.SetSetting(SettingKey.RssItemNum.ToString(), num);
 }
Пример #6
0
 public static void SetWindowResolution(Windows.Foundation.Size size)
 {
     SettingsHelper.SetSetting(SettingKey.WindowsResolution.ToString(), size);
 }
Пример #7
0
 public static void SetRssLink(string link)
 {
     SettingsHelper.SetSetting(SettingKey.RssLink.ToString(), link);
 }
Пример #8
0
 public static void SetNote(string note)
 {
     SettingsHelper.SetSetting(SettingKey.Note.ToString(), note);
 }
Пример #9
0
 public static void SetOfflineQuote(string quote)
 {
     SettingsHelper.SetSetting(SettingKey.OfflineQuote.ToString(), quote);
 }
Пример #10
0
 public static void BingSetShowInfo(bool isShow)
 {
     SettingsHelper.SetSetting(SettingKey.BingIsShowInfo.ToString(), isShow);
 }
Пример #11
0
 public static void BingSetLanguage(string bingLanguageCode)
 {
     SettingsHelper.SetSetting(SettingKey.BingLanguage.ToString(), bingLanguageCode);
 }