コード例 #1
0
 private void RaiseNoteSaved(NoteViewModel noteViewModel)
 {
     if (NoteSaved != null)
     {
         NoteSaved(this, new NoteSavedEventArgs(noteViewModel));
     }
 }
コード例 #2
0
 public void AddNoteToList(NoteViewModel note)
 {
     var item = new ListViewItem(note.Title);
     item.SubItems.Add(note.Description);
     lstNotes.Items.Add(item);
 }
コード例 #3
0
 public NoteSavedEventArgs(NoteViewModel noteViewModel)
 {
     _noteViewModel = noteViewModel;
 }