FileStoreHandler.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* ==============================================================================
  2. * 功能描述:FileStoreHandler
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/5/29 9:44:16
  5. * ==============================================================================*/
  6. using System;
  7. using System.Collections.Generic;
  8. using System.IO;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using SAGA.DotNetUtils;
  13. using SAGA.DotNetUtils.Utilities;
  14. namespace WPFTestUpdate.Utils
  15. {
  16. /// <summary>
  17. /// FileStoreHandler
  18. /// </summary>
  19. class FileStoreHandler
  20. {
  21. private static string m_SettingPath=Path.Combine(AppBaseInfo.DllRunPath,"Upload\\Setting.ini");
  22. private static string m_Section = "Configure";
  23. public static void SaveData(string key,string value)
  24. {
  25. IniOperator.Instance(m_SettingPath).SetData(m_Section, key,value);
  26. }
  27. public static string GetData(string key)
  28. {
  29. return IniOperator.Instance(m_SettingPath).GetData(m_Section, key);
  30. }
  31. }
  32. }