Esempio n. 1
0
 void f_Sticky_Deleted(frmStickyNote f)
 {
     stickyNotes.Remove(f);
 }
Esempio n. 2
0
 private void newToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     frmStickyNote f = new frmStickyNote(null);
     f.Sticky_Deleted += new frmStickyNote.StickyDeletedHandler(f_Sticky_Deleted);
     stickyNotes.Add(f);
     f.Show();
     //bring it to front too
     Interop.SetForegroundWindow(f.Handle);
 }
Esempio n. 3
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     //load stickynotes
     List<int> NoteIds = Config.GetNoteIDs();
     foreach (int id in NoteIds)
     {
         frmStickyNote f = new frmStickyNote(id);
         f.Sticky_Deleted += new frmStickyNote.StickyDeletedHandler(f_Sticky_Deleted);
         stickyNotes.Add(f);
         f.Show();
     }
     topmostToolStripMenuItem1.Checked = true;
     NotesHidden = false;
 }