private void button1_Click(object sender, EventArgs e) { using (广告宣传费用录入 mForm = new 广告宣传费用录入()) { mForm.ShowDialog(); } }
private void dgvCustomerBills_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { if (e.ColumnIndex == dgvAdvertisingFee.Columns["ColModify"].Index) { 广告宣传费用录入 mForm = new 广告宣传费用录入(); mForm.mId = Convert.ToInt64(dgvAdvertisingFee.Rows[e.RowIndex].Cells["idDataGridViewTextBoxColumn"].Value); mForm.ShowDialog(); } } }