Ejemplo n.º 1
0
		public static void SetGroup(BaseScheduledTask element, Group newGroup)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, ElementDomainRoleId, newGroup);
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Constructor
		/// Creates a GroupHasScheduledTasks link in the same Partition as the given Group
		/// </summary>
		/// <param name="source">Group to use as the source of the relationship.</param>
		/// <param name="target">BaseScheduledTask to use as the target of the relationship.</param>
		public GroupHasScheduledTasks(Group source, BaseScheduledTask target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(GroupHasScheduledTasks.GroupDomainRoleId, source), new DslModeling::RoleAssignment(GroupHasScheduledTasks.ElementDomainRoleId, target)}, null)
		{
		}
Ejemplo n.º 3
0
		public static Group GetGroup(BaseScheduledTask element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, ElementDomainRoleId) as Group;
		}