private void btnAdd_Click(object sender, EventArgs e) { FrmYZDLModify FrmAction = new FrmYZDLModify("Add", this, ID); FrmAction.ShowDialog(); if (isOK) { GetList(); } }
private void btnUpdate_Click(object sender, EventArgs e) { dataGridView1_CellContentClick(null, new DataGridViewCellEventArgs(this.dataGridView1.CurrentCell.ColumnIndex, this.dataGridView1.CurrentCell.RowIndex)); FrmYZDLModify FrmAction = new FrmYZDLModify("Update", this, ID); FrmAction.ShowDialog(); if (isOK) { GetList(); } }