예제 #1
0
        private void AddBtn_Click(object sender, EventArgs e)
        {
            ANote drNote = new ANote(0, ((ANote)Notes[Notes.Count - 1]).maxAlignY + 5);

            Notes.Add(drNote);
            drNote.AddToPanel(this.NotePanel);
        }
예제 #2
0
        public void initializeBlankNote()
        {
            ANote drNote1 = new ANote();

            Notes.Add(drNote1);
            drNote1.AddToPanel(this.NotePanel);

            ANote drNote2 = new ANote(0, drNote1.maxAlignY + 5);

            Notes.Add(drNote2);
            drNote2.AddToPanel(this.NotePanel);
        }