예제 #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
        private void emptyButton_Click(object sender, EventArgs e)
        {
            Hide();
            NoteForm  nf    = new NoteForm(this);
            Rectangle range = new SystemWindow(rangePanel).Rectangle.ToRectangle();

            nf.setNote(new Note(null, range, colorBox.BackColor), true);
            nf.Show();
        }
예제 #3
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();
        }
예제 #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 = 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();
        }
예제 #6
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();
        }
예제 #7
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();
        }