Example #1
0
        static public NoteForm CreateNewNote(List <NoteForm> toCheck)
        {
            NoteForm   toCreate = new NoteForm();
            CreateNote notes    = new CreateNote(toCreate);

            notes.toCheck = toCheck;

            notes.ShowDialog();

            if (toCreate.Name != null)
            {
                return(toCreate);
            }
            return(default);
Example #2
0
        // Button, which allows us to make new note
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            timerNoteNotify.Stop();

            NoteForm toAdd = CreateNote.CreateNewNote(notes);

            if (toAdd != default)
            {
                notes.Add(toAdd);
                listViewNotes.Items.Insert(0, toAdd.Name);
                listViewNotes.Items[0].SubItems.Add(toAdd.ToNotify.ToShortDateString() + " | " + toAdd.ToNotify.ToShortTimeString());
            }

            timerNoteNotify.Start();

            RelevantCheck();
        }