using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LYFZ.WindowsServiceHandling { public class RegisterKey { public RegisterKey() { } static string subKey_Root = "software\\LYFZ\\"; /// /// 软件注册根路径 /// public static string SubKey_Root { get { return RegisterKey.subKey_Root; } } static string subKey_Server = "Server\\"; /// /// 软件服务器注册路径 /// public static string SubKey_Server { get { return RegisterKey.SubKey_Root+RegisterKey.subKey_Server; } } static string subKey_Client = "Client\\"; /// /// 软件客户端注册路径 /// public static string CubKey_Client { get { return RegisterKey.SubKey_Root + RegisterKey.subKey_Client; } } /// /// 注册表键名 /// public enum RegeditKeyName { /// /// 软件版本 集团版、单店版 /// SoftwareCategory, /// /// 服务器类型 /// ServerType, /// /// 全局ID /// GlobalIDKey, } /// /// 软件服务器类型 /// public enum SoftwareServerType { /// /// 总店服务器 /// MainStore, /// /// 分店服务器 /// BranchStore, /// /// 空值 /// EmptyStore, } /// /// 当前服务器注册类型 /// public enum MyServerType { 集团云版_总店=0, 集团云版_分店=1, 集团版_总店=2, 集团版_分店=3, 单店云版=4, 单店版=5, } } }