public frmNote(List <Note> exisitingNotes) { InitializeComponent(); ShowExistingNotes(exisitingNotes); myNote = InstanceFactory.Note(); txtBoxNoteDate.Text = myNote.NoteDate.ToLongDateString(); }
private void btnUpdateCloseNote_Click(object sender, EventArgs e) { //Update the instance myNote.NoteText = rTextBoxNote.Text.Replace("\n", @"\b0 \line "); //To cope with multiline notes (and \n not being saved in the database), we replace the newline character. //Save the new Note instance. myNote = myNote.Save(); CloseNoteForm(); }
public void Setup() { note = new Note(); }
//public frmNote(iNote thisNote) private frmNote(iNote thisNote) { InitializeComponent(); }