private void btnPairDetail_Click(object sender, EventArgs e) { frmCommitPair frm = new frmCommitPair(); frm.idInvoiceItem = idInvoiceItemAkt; frm.idProduct = (int)gvPair["idProduct", gvPair.CurrentCell.RowIndex].Value; frm.idPairType = (int)gvPair["idPairType", gvPair.CurrentCell.RowIndex].Value; if (System.Windows.Forms.DialogResult.Yes == frm.ShowDialog(this)) { RefreshOneRowInvoicePair(); } }
private void btnPorovnej_Click(object sender, EventArgs e) { frmCommitPair frm = new frmCommitPair(); frm.idInvoiceItem = idInvoiceItemAkt; frm.idProduct = idProductAkt; frm.idPairType = ((int)cmbPairType.SelectedValue); if (System.Windows.Forms.DialogResult.Yes == frm.ShowDialog(this)) { RefreshOneRowInvoicePair(); } }