123456789101112131415161718192021222324252627282930313233343536 |
- /* ==============================================================================
- * 功能描述:FileStoreHandler
- * 创 建 者:Garrett
- * 创建日期:2019/5/29 9:44:16
- * ==============================================================================*/
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using SAGA.DotNetUtils;
- using SAGA.DotNetUtils.Utilities;
- namespace WPFTestUpdate.Utils
- {
- /// <summary>
- /// FileStoreHandler
- /// </summary>
- class FileStoreHandler
- {
- private static string m_SettingPath=Path.Combine(AppBaseInfo.DllRunPath,"Upload\\Setting.ini");
- private static string m_Section = "Configure";
- public static void SaveData(string key,string value)
- {
- IniOperator.Instance(m_SettingPath).SetData(m_Section, key,value);
- }
- public static string GetData(string key)
- {
- return IniOperator.Instance(m_SettingPath).GetData(m_Section, key);
- }
- }
- }
|