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