Exemple #1
0
 private void removeNote(Note sender)
 {
     noteList.Remove(sender);
     this.trayIcon.Text = "# of Notes: " + noteList.Count +
                          "\nSticky Notes!";
 }
Exemple #2
0
 private void newNote(Color bColor, Color fColor, Font f, int opaq, bool defaultTheme, String[] text)
 {
     Note temp;
     if(defaultTheme)
         temp = new Note(bgColor, fontColor, nFont, mOpacity, new String[0]);
     else
         temp = new Note(bColor, fColor, f, opaq, text);
     temp.Show();
     temp.newNote += new addNoteHandler(newNote);
     temp.removeNote += new removeNoteHandler(removeNote);
     noteList.Add(temp);
     this.trayIcon.Text = "# of Notes: " + noteList.Count +
                          "\nSticky Notes!";
 }