public static Note LoadNote() { Note note = new Note(); note.Title = br.ReadString(); note.Text = br.ReadString(); return note; }
private void cmdAddNote_Click(object sender, EventArgs e) { if (InputStrDialog.Show("New Note", "Enter title of note:") == DialogResult.OK) { Note note = new Note(); note.Title = InputStrDialog.Result; notes.Add(note); ListViewItem lvi = new ListViewItem(note.Title); lvi.SubItems.Add(""); lvi.Tag = note; lstNotes.Items.Add(lvi); new Editor(note, typename, lvi).Show(); } }