private void TerminalEmulatorWithCopyPaste_MouseMove(object sender, MouseEventArgs e) { if ((e.Button & MouseButtons.Left) != 0) { _end = location(e.X, e.Y); if (!_begin.Equals(_end)) { copyToolStripMenuItem.Enabled = true; CaculateRegion(); } } }
private void Blink_Tick(object sender, EventArgs e) { // Blink cursor. _blink = !_blink; invalidate(_old_cursor); invalidate(cursor); _old_cursor = cursor; }
private void TerminalEmulatorWithCopyPaste_MouseDown(object sender, MouseEventArgs e) { if ((e.Button & MouseButtons.Left) != 0) { if (_polygon != null) { copyToolStripMenuItem.Enabled = false; _polygon = null; invalidate(_begin.line, _end.line, 0, _chars._size.col); } _begin = location(e.X, e.Y); } }