예제 #1
0
 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);
 }
예제 #2
0
        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);
        }