/// <summary> /// 获取系统设定。 /// </summary> /// <returns></returns> public USeSystemSetting GetSystemSetting() { Debug.Assert(m_systemSetting != null); lock (m_syncObj) { USeSystemSetting setting = m_systemSetting.Clone(); return(setting); } }
/// <summary> /// 保存系统设定。 /// </summary> /// <param name="systemSetting"></param> public void SaveSystemSetting(USeSystemSetting systemSetting) { try { m_dataAccessor.SaveUSeSystemConfig(systemSetting); lock (m_syncObj) { m_systemSetting = systemSetting.Clone(); } } catch (Exception ex) { throw new Exception("保存系统设定失败," + ex.Message); } SafeFireSystemSettingChanged(); }