private void toolStripButton_New_Click(object sender, EventArgs e) { Form_WebPageDlg frm = new Form_WebPageDlg(); if (frm.ShowDialog() == DialogResult.OK) { GetList(); } }
private void toolStripButton_Edit_Click(object sender, EventArgs e) { if (this.gridView_report.FocusedRowHandle < 0) { MessageBox.Show("请选择需要编辑的数据!"); return; } string id = this.gridView_report.GetFocusedRowCellValue("id").ToString(); Form_WebPageDlg frm = new Form_WebPageDlg(); frm.id = id; if (frm.ShowDialog() == DialogResult.OK) { GetList(); } }