private void modify_Click(object sender, EventArgs e) { estimateForm = new EstimateForm(); estimateForm.UpdateSale( int.Parse((saleSummaryGrid.SelectedRows[0].Cells[0].Value.ToString()))); estimateForm.Dispose(); RefreshAll(); }
private void saleGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (saleGrid.SelectedRows[0].Tag != null) { int transId = -1; if (int.TryParse(saleGrid.SelectedRows[0].Tag.ToString(), out transId)) { if (transId > -1) { EstimateForm editTransaction = new EstimateForm(); editTransaction.UpdateSale(transId); PopulateValues(); } } } }