예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="targetItems"></param>
 protected void FillTargetItems(TargetItemsBaseReadWrite targetItems)
 {
     if (targetItems.IsAny)
     {
         if (targetItems is ActionsElementReadWrite)
         {
             this.Nodes.Add(new AnyAction());
         }
         else if (targetItems is SubjectsElementReadWrite)
         {
             this.Nodes.Add(new AnySubject());
         }
         else if (targetItems is ResourcesElementReadWrite)
         {
             this.Nodes.Add(new AnyResource());
         }
     }
     else
     {
         foreach (TargetItemBaseReadWrite targetItem in targetItems.ItemsList)
         {
             this.Nodes.Add(new TargetItem(targetItem));
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Creates a new instance of any target item.
 /// </summary>
 protected TargetItems(TargetItemsBaseReadWrite targetItems)
 {
     _targetItems = targetItems;
 }