Example #1
0
        public void DisplayNotes()
        {
            if (notes.Count == 0)
            {
                Console.WriteLine("No notes yet");
            }

            NoteDisplayer displayer = new NoteDisplayer();

            foreach (var note in notes)
            {
                displayer.DisplayMainInfo(note);
            }
        }
Example #2
0
        public void DisplayRecentNotsNote(DateTime borderDate)
        {
            NoteDisplayer displayer = new NoteDisplayer();
            bool          displayed = false;

            foreach (var note in notes)
            {
                if (note.CreationDate > borderDate)
                {
                    displayed = true;
                    displayer.DisplayMainInfo(note);
                }
            }

            if (!displayed)
            {
                Console.WriteLine("No notes yet");
            }
        }