예제 #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);
 }
예제 #2
0
 internal EntityRefField(WorklistItemFieldLevel level)
     : base(level)
 {
 }
예제 #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public WorklistItemField(WorklistItemFieldLevel level)
 {
     _level = level;
 }
예제 #4
0
			internal EntityRefField(WorklistItemFieldLevel level)
				:base(level)
			{
			}
예제 #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;
		}
예제 #6
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public WorklistItemField(WorklistItemFieldLevel level)
		{
			_level = level;
		}
예제 #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)));
 }