IPostItUI getIdeaUIWithId(int id) { for (int i = 0; i < discardedItemsContainer.Children.Count; i++) { IPostItUI currentUI = (IPostItUI)discardedItemsContainer.Children[i]; if (currentUI.getNoteID() == id) { return(currentUI); } } return(null); }
private ScatterViewItem findNoteContainerOfIdea(IdeationUnit idea) { ScatterViewItem matchedItem = null; foreach (ScatterViewItem item in sv_MainCanvas.Items) { IPostItUI noteUI = (IPostItUI)item.Content; if (noteUI.getNoteID() == idea.Id) { matchedItem = item; } } return(matchedItem); }