示例#1
0
 private void emptyButton_Click(object sender, EventArgs e)
 {
     Hide();
     NoteForm nf = new NoteForm(this);
     Rectangle range = this.RectangleToScreen(rangePanel.Bounds);
     nf.setNote(new Note(null, range, colorBox.BackColor), true);
     nf.Show();
 }
示例#2
0
 void closedNoteMenuItem_Click(object sender, EventArgs e)
 {
     ToolStripMenuItem nmi = (ToolStripMenuItem)sender;
     closedNotesToolStripMenuItem.DropDownItems.Remove(nmi);
     if (closedNotesToolStripMenuItem.DropDownItems.Count == 1)
     {
         noneToolStripMenuItem.Visible = true;
     }
     NoteForm nf = new NoteForm(this);
     Note n = (Note)nmi.Tag;
     nf.setNote((Note)nmi.Tag, false);
     nf.Show();
 }
示例#3
0
        private void shotButton_Click(object sender, EventArgs e)
        {
            Hide();
            Rectangle range = new SystemWindow(rangePanel).Rectangle.ToRectangle();
            Bitmap    bmp   = new Bitmap(range.Width, range.Height);
            Graphics  g     = Graphics.FromImage(bmp);

            g.CopyFromScreen(range.Location, new Point(0, 0), range.Size);
            g.Dispose();
            NoteForm nf = new NoteForm(this);

            nf.setNote(new Note(bmp, range, colorBox.BackColor), true);

            nf.Show();
        }
示例#4
0
        void closedNoteMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem nmi = (ToolStripMenuItem)sender;

            closedNotesToolStripMenuItem.DropDownItems.Remove(nmi);
            if (closedNotesToolStripMenuItem.DropDownItems.Count == 1)
            {
                noneToolStripMenuItem.Visible = true;
            }
            NoteForm nf = new NoteForm(this);
            Note     n  = (Note)nmi.Tag;

            nf.setNote((Note)nmi.Tag, false);
            nf.Show();
        }
示例#5
0
        private void shotButton_Click(object sender, EventArgs e)
        {
            Hide();
            Rectangle range = this.RectangleToScreen(rangePanel.Bounds);
            Bitmap bmp = new Bitmap(range.Width, range.Height);
            Graphics g = Graphics.FromImage(bmp);
            g.CopyFromScreen(range.Location, new Point(0, 0), range.Size);
            g.Dispose();
            NoteForm nf = new NoteForm(this);
            nf.setNote(new Note(bmp, range, colorBox.BackColor), true);

            nf.Show();
        }