コード例 #1
0
 private void InputBooks_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Delete)
     {
         if (inputBooks.SelectedIndex == -1)
         {
             return;
         }
         newBooks.RemoveAt(inputBooks.SelectedIndex);
         bookBinding.ResetBindings(true);
     }
 }