Esempio n. 1
0
        /// <summary>
        /// METHOD: AddNote_Click, a method which will add a new fishyNote to the form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddNote_Click(object sender, EventArgs e)
        {
            uidIncrementer++;

            _noteData.AddNote(uidIncrementer, "");

            // INSTANTIATE _newNote as a new type of FishyNote
            _newNote = new FishyNote(this.DeleteNote, this.ReplaceNote, this.RetrieveNote, this.ReturnImage, uidIncrementer);


            // show the new note
            _newNote.Show();

            _notes.Add(_newNote);

            _newNote = null;
        }
Esempio n. 2
0
 public IActionResult AddNote(Note newNote)
 {
     _noteData.AddNote(newNote);
     return(Ok());
 }