Beispiel #1
0
        public static void Copy(Catalogue toCatalogue, Namespace ns, ReadOnlyOption readOnlyOption, bool isReferenced, bool iterate)
        {
            INamespaceParent parent = toCatalogue.EnsureNamespaceParent(ns.Parent.FullName);

            // Clone the source namespace, so that CopyElement can modify it by calling PushAllEnabledEventsToChildren().

            CopyElement(parent, ns.Clone(ns.Parent, ns.Name), iterate);
        }
Beispiel #2
0
        public static void Copy(Catalogue toCatalogue, Catalogue fromCatalogue, ReadOnlyOption readOnlyOption, bool isReferenced)
        {
            // Iterate.

            foreach (EventType eventType in fromCatalogue.EventTypes)
            {
                CopyElement(toCatalogue, eventType);
            }

            // Clone the source namespace, so that CopyElement can modify it by calling PushAllEnabledEventsToChildren().

            foreach (Namespace ns in fromCatalogue.Namespaces)
            {
                CopyElement(toCatalogue, ns.Clone(fromCatalogue, ns.Name), true);
            }
        }
Beispiel #3
0
 public static void Copy(Catalogue toCatalogue, Source source, ReadOnlyOption readOnlyOption)
 {
     Copy(toCatalogue, source, readOnlyOption, false);
 }
Beispiel #4
0
        public static void Copy(Catalogue toCatalogue, Source source, ReadOnlyOption readOnlyOption, bool isReferenced)
        {
            ISourceParent parent = toCatalogue.EnsureSourceParent(source.Parent.FullName);

            CopyElement(parent, source);
        }
Beispiel #5
0
 public static void Copy(Catalogue toCatalogue, Namespace ns, ReadOnlyOption readOnlyOption)
 {
     Copy(toCatalogue, ns, readOnlyOption, false, true);
 }
Beispiel #6
0
 public static void Copy(Catalogue toCatalogue, EventType eventType, ReadOnlyOption readOnlyOption)
 {
     Copy(toCatalogue, eventType, readOnlyOption, false);
 }
Beispiel #7
0
 public static void Copy(Catalogue toCatalogue, EventType eventType, ReadOnlyOption readOnlyOption, bool isReferenced)
 {
     CopyElement(toCatalogue, eventType);
 }
Beispiel #8
0
 public static void Copy(Catalogue toCatalogue, Catalogue fromCatalogue, ReadOnlyOption readOnlyOption)
 {
     Copy(toCatalogue, fromCatalogue, readOnlyOption, false);
 }
 public ReadonlyAttribute(ReadOnlyOption when) => Option = when;