File was renamed from HDL_ON/HDL/Operation/UserConfig.cs |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.DAL; |
| | | using HDL_ON.Entity; |
| | | |
| | | namespace HDL_ON |
| | | { |
| | | [System.Serializable] |
| | | public class UserConfig |
| | | { |
| | | static string configFile = "UserConfig"; |
| | | |
| | | static UserConfig instance; |
| | | public static UserConfig Instance { |
| | | get { |
| | | if (instance == null) { |
| | | try { |
| | | var userConfigBytes = MyIO.FileUtils.ReadFile (configFile); |
| | | var userConfigBytes = MyIO.FileUtils.ReadFile ("UserConfig"); |
| | | var userConfigString = CommonPage.MyEncodingUTF8.GetString (userConfigBytes); |
| | | UserConfig temp = null; |
| | | if (userConfigString != null) { |
| | |
| | | |
| | | public void SaveUserConfig () |
| | | { |
| | | MyIO.FileUtils.WriteFileByBytes (configFile, GetUserConfigBytes ()); |
| | | MyIO.FileUtils.WriteFileByBytes ("UserConfig", GetUserConfigBytes ()); |
| | | } |
| | | /// <summary> |
| | | /// 国家代码 |
| | |
| | | /// 信息推送标记 |
| | | /// </summary> |
| | | public string PushDeviceToken; |
| | | |
| | | /// <summary> |
| | | /// 当前选择的楼层 |
| | | /// </summary> |
| | | public string CurFoor = "all"; |
| | | |
| | | public Dictionary<string, int> SkinVision = new Dictionary<string, int> (); |
| | | public Dictionary<string, int> DowlaodSkinVision = new Dictionary<string, int> (); |
| | |
| | | |
| | | |
| | | public RegionInfoRes CurrentRegion; |
| | | |
| | | /// <summary> |
| | | /// 切换当前app显示的住宅 |
| | | /// </summary> |
| | | /// <param name="regionInfo"></param> |
| | | public void ChangeResidence (RegionInfoRes regionInfo) |
| | | { |
| | | CurrentRegion = regionInfo; |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |