예제 #1
0
 private void btnAddNote_Click(object sender, EventArgs e)
 {
     AddNotesForm frm = new AddNotesForm();
     frm.ProjectName = myProject.Name;
     if (frm.ShowDialog() == DialogResult.OK) {
         Note n = new Note(frm.Note, frm.NoteDateTime);
         myProject.Notes.Add(n);
         richTextBox1.Text = (n.ToString("{0:f} : \n-----\n{1}") + "\n\n") + richTextBox1.Text;
         Highlight();
     }
 }
예제 #2
0
        private void btnAddNote_Click(object sender, EventArgs e)
        {
            AddNotesForm frm = new AddNotesForm();

            frm.ProjectName = myProject.Name;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                Note n = new Note(frm.Note, frm.NoteDateTime);
                myProject.Notes.Add(n);
                richTextBox1.Text = (n.ToString("{0:f} : \n-----\n{1}") + "\n\n") + richTextBox1.Text;
                Highlight();
            }
        }