Пример #1
0
 /// <summary>
 /// Checks if this attribute spec exists on the given node
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public static bool CompletionDateExists(this MapNode node)
 {
     MapTree.AttributeSpec aspec = CompletionDateAttribute.GetAttributeSpec(node.Tree);
     if (aspec != null)
     {
         return(node.ContainsAttribute(aspec));
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 /// <summary>
 /// Checks if this attribute spec exists on the given node
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public static bool TaskStatusExists(MapNode node)
 {
     MapTree.AttributeSpec aspec = TaskStatusAttribute.GetAttributeSpec(node.Tree);
     if (aspec != null)
     {
         return(node.ContainsAttribute(aspec));
     }
     else
     {
         return(false);
     }
 }
Пример #3
0
 public static bool StartDateExists(this MapNode node)
 {
     return(node.ContainsAttribute(START_DATE_ATTRIBUTE));
 }