private void button2_Click(object sender, EventArgs e) { FrmSalesSettlementAdd frmSalesSettlementAdd = new FrmSalesSettlementAdd(); //DialogResult dialogResult = frmSalesSettlementAdd.ShowDialog(); if (frmSalesSettlementAdd.ShowDialog(this) == DialogResult.OK) { DataGridView("", 0); } }
private void btnDisplay_Click(object sender, EventArgs e) { if (dgvSettlement.CurrentRow != null) { long pSId = Convert.ToInt64(dgvSettlement.CurrentRow.Cells["核算单号"].Value.ToString()); FrmSalesSettlementAdd frmFSLAdd = new FrmSalesSettlementAdd(); //frmFSLAdd.IsNew = false; frmFSLAdd.PSId = pSId; frmFSLAdd.Text = "核算单明细"; frmFSLAdd.ShowDialog(); } else { MessageBox.Show("请选择要查看的核算单!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } }