private void toolStripButton_New_Click(object sender, EventArgs e) { Form_Api_Dlg frm = new Form_Api_Dlg(); 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_Api_Dlg frm = new Form_Api_Dlg(); frm.id = id; if (frm.ShowDialog() == DialogResult.OK) { GetList(); } }