Exemplo n.º 1
0
 /// <summary>
 /// Tests whether this level includes the specified level.
 /// </summary>
 /// <remarks>
 /// Levels can be thought of as nested sets, where each level includes all the levels below it.
 /// This method determines whether the specified level at the same level, or below, as this instance.
 /// </remarks>
 /// <param name="level"></param>
 /// <returns></returns>
 public bool Includes(WorklistItemFieldLevel level)
 {
     return(_index >= level._index);
 }
Exemplo n.º 2
0
 internal EntityRefField(WorklistItemFieldLevel level)
     : base(level)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public WorklistItemField(WorklistItemFieldLevel level)
 {
     _level = level;
 }
Exemplo n.º 4
0
			internal EntityRefField(WorklistItemFieldLevel level)
				:base(level)
			{
			}
Exemplo n.º 5
0
		/// <summary>
		/// Tests whether this level includes the specified level.
		/// </summary>
		/// <remarks>
		/// Levels can be thought of as nested sets, where each level includes all the levels below it.
		/// This method determines whether the specified level at the same level, or below, as this instance.
		/// </remarks>
		/// <param name="level"></param>
		/// <returns></returns>
		public bool Includes(WorklistItemFieldLevel level)
		{
			return _index >= level._index;
		}
Exemplo n.º 6
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public WorklistItemField(WorklistItemFieldLevel level)
		{
			_level = level;
		}
Exemplo n.º 7
0
 /// <summary>
 /// Gets a new projection that represents the specified projection filtered to the specified level.
 /// </summary>
 /// <param name="projection"></param>
 /// <param name="level"></param>
 /// <returns></returns>
 private static WorklistItemProjection FilterProjection(WorklistItemProjection projection, WorklistItemFieldLevel level)
 {
     return(projection.Filter(f => level.Includes(f.Level)));
 }