public AnotoPostIt createNewPostItWithNoteID(int noteID) { foreach (AnotoPostIt postIt in anotoNotes) { //note with this ID already exists if (postIt.Id == noteID) { return(null); } } AnotoPostIt newPostIt = new AnotoPostIt(noteID); for (int i = 0; i < bufferedTraces.Count;) { if (bufferedTraces[i].InkDots[0].PaperNoteID == noteID) { newPostIt.updateContent(bufferedTraces[i]); bufferedTraces.RemoveAt(i); } else { i++; } } newPostIt.IsAvailable = true; return(newPostIt); }
public void processSingleIDTrace(AnotoInkTrace trace) { AnotoPostIt postIt = getPostItWithID(trace.InkDots[0].PaperNoteID); if (postIt == null) { bufferedTraces.Add(trace); } else { if (postIt.IsAvailable) { postIt.updateContent(trace); } } }