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(); }
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(); }
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(); }
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(); }