示例#1
0
        public RegistryShard Export()
        {
            RegistryShard shard = new RegistryShard();

            shard.BinPrefix = BinPrefix;
            shard.Language  = Language;
            shard.Path      = Path;

            shard.Hooks = Hooks;

            return(shard);
        }
示例#2
0
        public void Import(RegistryShard shard)
        {
            if (shard.BinPrefix != null)
            {
                BinPrefix = shard.BinPrefix;
            }
            if (shard.Language != null)
            {
                Language = shard.Language;
            }
            if (shard.Path != null)
            {
                Path = shard.Path;
            }

            if (shard.Hooks != null)
            {
                Hooks.AddRange(shard.Hooks);
            }
        }
示例#3
0
        public void Import(RegistryShard shard)
        {
            if (shard.BinPrefix != null) BinPrefix = shard.BinPrefix;
            if (shard.Language != null) Language = shard.Language;
            if (shard.Path != null) Path = shard.Path;

            if (shard.Hooks != null) Hooks.AddRange(shard.Hooks);
        }
示例#4
0
        public RegistryShard Export()
        {
            RegistryShard shard = new RegistryShard();

            shard.BinPrefix = BinPrefix;
            shard.Language = Language;
            shard.Path = Path;

            shard.Hooks = Hooks;

            return shard;
        }