コード例 #1
0
 private void soldTable_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     using (var details = new SaleDetails())
     {
         details.SetId((int)soldTable.SelectedCells[0].Value);
         details.ShowDialog();
     }
 }
コード例 #2
0
 private void transactionsTable_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     using (var saledetails = new SaleDetails())
     {
         saledetails.SetId((int)(transactionsTable.Rows[e.RowIndex].Cells[0].Value));
         saledetails.ShowDialog();
     }
 }