Example #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="elementLink">Relationship instance.</param>
 /// <param name="category">Category of the dependency item.</param>
 public DependencyItem(ElementLink elementLink, DependencyItemCategory category, ModelElement source, ModelElement target)
 {
     this.elementLink   = elementLink;
     this.itemCategory  = category;
     this.SourceElement = source;
     this.TargetElement = target;
     this.Message       = null;
 }
Example #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="elementLink">Relationship instance.</param>
 /// <param name="category">Category of the dependency item.</param>
 public DependencyItem(string message, DependencyItemCategory category, ModelElement source, ModelElement target)
 {
     this.elementLink   = null;
     this.itemCategory  = category;
     this.SourceElement = source;
     this.TargetElement = target;
     this.Message       = message;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="elementLink">Relationship instance.</param>
 /// <param name="category">Category of the dependency item.</param>
 public DependencyItem(string message, DependencyItemCategory category, ModelElement source, ModelElement target)
 {
     this.elementLink = null;
     this.itemCategory = category;
     this.SourceElement = source;
     this.TargetElement = target;
     this.Message = message;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="elementLink">Relationship instance.</param>
 /// <param name="category">Category of the dependency item.</param>
 public DependencyItem(ElementLink elementLink, DependencyItemCategory category, ModelElement source, ModelElement target)
 {
     this.elementLink = elementLink;
     this.itemCategory = category;
     this.SourceElement = source;
     this.TargetElement = target;
     this.Message = null;
 }
Example #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="elementLink">Relationship instance.</param>
        /// <param name="category">Category of the dependency item.</param>
        /// <param name="relationshipInfo">Relationship info.</param>
        /// <param name="roleInfo">Role info.</param>
        /// <returns></returns>
        public bool Contains(ElementLink elementLink, DependencyItemCategory category, DomainRelationshipInfo relationshipInfo, DomainRoleInfo roleInfo)
        {
            foreach (DependencyItem item in ActiveDependencies)
            {
                if (item.ElementLink == elementLink &&
                    item.Category == category &&
                    item.RelationshipInfo == relationshipInfo &&
                    item.RoleInfo == roleInfo)
                {
                    return(true);
                }
            }

            return(false);
        }
Example #6
0
 /// <summary>
 /// Show items of a specific category in dependencies list.
 /// </summary>
 /// <param name="itemsCategory">Category of items to show.</param>
 public void ShowItems(DependencyItemCategory itemsCategory)
 {
     this.hiddenCategories.Remove(itemsCategory);
     UpdateDisplayList();
 }
Example #7
0
 /// <summary>
 /// Removes the items of a specific category from dependencies list.
 /// </summary>
 /// <param name="itemsCategory">Category of items to hide.</param>
 public void HideItems(DependencyItemCategory itemsCategory)
 {
     this.hiddenCategories.Add(itemsCategory);
     UpdateDisplayList();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="elementLink">Relationship instance.</param>
 /// <param name="category">Category of the dependency item.</param>
 /// <param name="relationshipInfo">Relationship info.</param>
 /// <param name="roleInfo">Role info.</param>
 public DependencyItem(ElementLink elementLink, DependencyItemCategory category, DomainRelationshipInfo relationshipInfo, DomainRoleInfo roleInfo)
     : base(elementLink.Id, relationshipInfo, roleInfo)
 {
     this.elementLink = elementLink;
     this.itemCategory = category;
 }
 /// <summary>
 /// Show items of a specific category in dependencies list.
 /// </summary>
 /// <param name="itemsCategory">Category of items to show.</param>
 public void ShowItems(DependencyItemCategory itemsCategory)
 {
     this.hiddenCategories.Remove(itemsCategory);
     UpdateDisplayList();
 }
 /// <summary>
 /// Removes the items of a specific category from dependencies list.
 /// </summary>
 /// <param name="itemsCategory">Category of items to hide.</param>
 public void HideItems(DependencyItemCategory itemsCategory)
 {
     this.hiddenCategories.Add(itemsCategory);
     UpdateDisplayList();
 }
Example #11
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="elementLink">Relationship instance.</param>
 /// <param name="category">Category of the dependency item.</param>
 /// <param name="relationshipInfo">Relationship info.</param>
 /// <param name="roleInfo">Role info.</param>
 public DependencyItem(ElementLink elementLink, DependencyItemCategory category, DomainRelationshipInfo relationshipInfo, DomainRoleInfo roleInfo)
     : base(elementLink.Id, relationshipInfo, roleInfo)
 {
     this.elementLink  = elementLink;
     this.itemCategory = category;
 }