Beispiel #1
0
 protected override void OnAfterSerialise(RegistrySerialiser rs, RegistryKey key)
 {
     this.PurgeDeletedLinks(key);
     foreach (OemQuickLink oemQuickLink in (Collection <IQuickLink>) this.categoryQuickLinks)
     {
         rs.Serialise((object)oemQuickLink, key);
     }
     base.OnAfterSerialise(rs, key);
 }
Beispiel #2
0
        protected override bool OnBeforeSerialise(RegistrySerialiser rs, RegistryKey key)
        {
            EntryPoint entryPoint = this.EntryPoint;

            if (entryPoint != null && !entryPoint.RegKey.Contains("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Media Center\\Extensibility\\Entry Points"))
            {
                rs.Serialise((object)entryPoint, key, false);
            }
            return(true);
        }
Beispiel #3
0
 protected override void OnAfterSerialise(RegistrySerialiser rs, RegistryKey key)
 {
     if (this.CapabilitiesRequired != EntryPointCapabilities.None)
     {
         string str = ((object)this.CapabilitiesRequired).ToString().ToLower();
         key.SetValue("CapabilitiesRequired", (object)str);
     }
     else
     {
         key.DeleteValue("CapabilitiesRequired", false);
     }
     if (this.Application == null || this.Application.IsSaved)
     {
         return;
     }
     using (RegistryKey subKey = this.Application.RegHive.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Media Center\\Extensibility\\Applications"))
         rs.Serialise((object)this.Application, subKey);
 }