public bool containsSlide(PresentationSlide slide) { foreach (PresentationSlide item in slideListChangeHandler.getItems()) { if (slide.position == item.position) { return(true); } } return(false); }
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); }
public void AddTreeItem(CombinedTransformationTreeItem item) { item.position = treeItemListChangeHandler.getItems().Count; treeItemListChangeHandler.AddNew(item); item.parent = this; }