private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (dataGridView1.CurrentRow == null) { return; } else { string strBillNo = dataGridView1.CurrentRow.Cells["单号"].Value.ToString(); 挂账单明细 frm = new 挂账单明细(strBillNo, m_authFlag); frm.ShowDialog(); DataRefresh(); PositioningRecord(strBillNo); } }
private void btnAdd_Click(object sender, EventArgs e) { 挂账单明细 frm = new 挂账单明细("", m_authFlag); frm.ShowDialog(); }