private void soldTable_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { using (var details = new SaleDetails()) { details.SetId((int)soldTable.SelectedCells[0].Value); details.ShowDialog(); } }
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(); } }