RegisterKey.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.WindowsServiceHandling
  6. {
  7. public class RegisterKey
  8. {
  9. public RegisterKey()
  10. {
  11. }
  12. static string subKey_Root = "software\\LYFZ\\";
  13. /// <summary>
  14. /// 软件注册根路径
  15. /// </summary>
  16. public static string SubKey_Root
  17. {
  18. get { return RegisterKey.subKey_Root; }
  19. }
  20. static string subKey_Server = "Server\\";
  21. /// <summary>
  22. /// 软件服务器注册路径
  23. /// </summary>
  24. public static string SubKey_Server
  25. {
  26. get { return RegisterKey.SubKey_Root+RegisterKey.subKey_Server; }
  27. }
  28. static string subKey_Client = "Client\\";
  29. /// <summary>
  30. /// 软件客户端注册路径
  31. /// </summary>
  32. public static string CubKey_Client
  33. {
  34. get { return RegisterKey.SubKey_Root + RegisterKey.subKey_Client; }
  35. }
  36. /// <summary>
  37. /// 注册表键名
  38. /// </summary>
  39. public enum RegeditKeyName
  40. {
  41. /// <summary>
  42. /// 软件版本 集团版、单店版
  43. /// </summary>
  44. SoftwareCategory,
  45. /// <summary>
  46. /// 服务器类型
  47. /// </summary>
  48. ServerType,
  49. /// <summary>
  50. /// 全局ID
  51. /// </summary>
  52. GlobalIDKey,
  53. }
  54. /// <summary>
  55. /// 软件服务器类型
  56. /// </summary>
  57. public enum SoftwareServerType
  58. {
  59. /// <summary>
  60. /// 总店服务器
  61. /// </summary>
  62. MainStore,
  63. /// <summary>
  64. /// 分店服务器
  65. /// </summary>
  66. BranchStore,
  67. /// <summary>
  68. /// 空值
  69. /// </summary>
  70. EmptyStore,
  71. }
  72. /// <summary>
  73. /// 当前服务器注册类型
  74. /// </summary>
  75. public enum MyServerType
  76. {
  77. 集团云版_总店=0,
  78. 集团云版_分店=1,
  79. 集团版_总店=2,
  80. 集团版_分店=3,
  81. 单店云版=4,
  82. 单店版=5,
  83. }
  84. }
  85. }