Exemple #1
0
 public static global::Company.SlideShowDesigner.PhotoReferencesTargets GetLink(global::Company.SlideShowDesigner.Photo source, global::Company.SlideShowDesigner.Photo target)
 {
     global::System.Collections.Generic.IList <global::Company.SlideShowDesigner.PhotoReferencesTargets> links = DslModeling::DomainRoleInfo.GetElementLinks <global::Company.SlideShowDesigner.PhotoReferencesTargets>(source, global::Company.SlideShowDesigner.PhotoReferencesTargets.SourceDomainRoleId);
     foreach (global::Company.SlideShowDesigner.PhotoReferencesTargets link in links)
     {
         if (target.Equals(link.Target))
         {
             return(link);
         }
     }
     return(null);
 }
Exemple #2
0
 public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::Company.SlideShowDesigner.PhotoReferencesTargets> GetLinks(global::Company.SlideShowDesigner.Photo source, global::Company.SlideShowDesigner.Photo target)
 {
     global::System.Collections.Generic.List <global::Company.SlideShowDesigner.PhotoReferencesTargets>  outLinks = new global::System.Collections.Generic.List <global::Company.SlideShowDesigner.PhotoReferencesTargets>();
     global::System.Collections.Generic.IList <global::Company.SlideShowDesigner.PhotoReferencesTargets> links    = DslModeling::DomainRoleInfo.GetElementLinks <global::Company.SlideShowDesigner.PhotoReferencesTargets>(source, global::Company.SlideShowDesigner.PhotoReferencesTargets.SourceDomainRoleId);
     foreach (global::Company.SlideShowDesigner.PhotoReferencesTargets link in links)
     {
         if (target.Equals(link.Target))
         {
             outLinks.Add(link);
         }
     }
     return(outLinks.AsReadOnly());
 }