Exemple #1
0
        /**
         * Button Method:   Used to create & display a new instance of "FishyNote"
         */
        private void AddNote_Click(object sender, EventArgs e)
        {
            //IF
            if ((_newNote == null) || (_newNote.IsDisposed))
            {
                _newNote = new FishyNote(_noteID);

                // Increment Note ID
                _noteID++;

                // Add FishyNote to the NoteData
                _notes.AddNote(_newNote);

                _newNote.Show();
            }
        }
Exemple #2
0
        // Add Note Method:     Used to ...
        public void AddNote(FishyNote _note)
        {
            // Add the FishyNote to the List
            _userNotes.Add(_note);


            // Loop through the notes list and show each one
            for (int i = 0; i < _userNotes.Count; i++)
            {
                //
                Console.WriteLine("----------------------------------");
                Console.WriteLine("Note ID: " + _userNotes[i].NoteID);
                Console.WriteLine("----------------------------------");

                for (int z = 0; z < _userNotes[i].NoteData.Count; z++)
                {
                    Console.WriteLine(_userNotes[i].NoteData[z]);
                }

                Console.WriteLine("----------------------------------");
            }
        }