示例#1
0
 public bool containsSlide(PresentationSlide slide)
 {
     foreach (PresentationSlide item in slideListChangeHandler.getItems())
     {
         if (slide.position == item.position)
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public PresentationSlideItem containsShape(int position)
 {
     if (slideItemsListChangeHandler == null)
     {
         slideItemsListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>();
     }
     foreach (PresentationSlideItem item in slideItemsListChangeHandler.getItems())
     {
         if (item == null)
         {
             continue;
         }
         if (position == item.index)
         {
             return(item);
         }
     }
     return(null);
 }
示例#3
0
 public void AddTreeItem(CombinedTransformationTreeItem item)
 {
     item.position = treeItemListChangeHandler.getItems().Count;
     treeItemListChangeHandler.AddNew(item);
     item.parent = this;
 }