예제 #1
0
 public void UpdateListBox()
 {
     NotesTitlesListBox.Items.Clear();
     foreach (var n in noteLogic.NotesList())
     {
         NotesTitlesListBox.Items.Add(n.Name.ToString() + " => " + n.ID.ToString());
     }
 }
예제 #2
0
 public void RemoveNoteTest()
 {
     noteLogic.NewNote(noteViewModel);
     noteLogic.RemoveNote(noteViewModel);
     Assert.IsFalse(noteLogic.NotesList().Contains(noteViewModel));
 }