private void RaiseNoteSaved(NoteViewModel noteViewModel) { if (NoteSaved != null) { NoteSaved(this, new NoteSavedEventArgs(noteViewModel)); } }
public void AddNoteToList(NoteViewModel note) { var item = new ListViewItem(note.Title); item.SubItems.Add(note.Description); lstNotes.Items.Add(item); }
public NoteSavedEventArgs(NoteViewModel noteViewModel) { _noteViewModel = noteViewModel; }