Esempio n. 1
0
        public frmNote(List <Note> exisitingNotes)
        {
            InitializeComponent();

            ShowExistingNotes(exisitingNotes);

            myNote = InstanceFactory.Note();

            txtBoxNoteDate.Text = myNote.NoteDate.ToLongDateString();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public void Setup()
 {
     note = new Note();
 }
Esempio n. 4
0
 //public frmNote(iNote thisNote)
 private frmNote(iNote thisNote)
 {
     InitializeComponent();
 }