private void btnModify_Click(object sender, EventArgs e) { if (dgvTemShow.CurrentRow != null) { TempletShow templetShow = new TempletShow(); templetShow.ID = Convert.ToInt32(dgvTemShow.CurrentRow.Cells["ID"].Value); templetShow.ShowContent = dgvTemShow.CurrentRow.Cells["ShowContent"].Value.ToString(); FrmTempletLED frmTempletLED = new FrmTempletLED(templetShow); frmTempletLED.ShowDialog(); btnSearch_Click(null, null); } }
/// <summary> /// 模板设置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void 模板设置ToolStripMenuItem_Click(object sender, EventArgs e) { FrmTempletLED frmTempletLED = new FrmTempletLED(); frmTempletLED.ShowDialog(); }