示例#1
0
文件: GUI.cs 项目: AutoProt/AutoProt
 private void dgvUser_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.V && e.Control)
     {
         int rowIndex = int.MaxValue;
         foreach (DataGridViewRow currow in dgvUser.SelectedRows)
         {
             if (rowIndex > currow.Index)
             {
                 rowIndex = currow.Index;
             }
         }
         viewmodel.PasteDataToGridview(1, rowIndex);
     }
 }