private void btnAddRunText_Click(object sender, EventArgs e) { FormRunText form = new FormRunText(); form.DataChanged += new Action <EventArgs>(FormRunText_DataChanged); form.ShowDialog(); }
private void gridRunText_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } string id = Convert.ToString(gridRunText.Rows[e.RowIndex].Cells[0].Value); if (id == "") { return; } FormRunText form = new FormRunText(id.Trim()); form.DataChanged += new Action <EventArgs>(FormRunText_DataChanged); form.ShowDialog(); }