private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { RectangleDoc.DeleteSelected(); Invalidate(true); } }
private void cutToolStripMenuItem_Click(object sender, EventArgs e) { RectangleDoc.DeleteSelected(); Invalidate(true); }