/// <summary> /// 修改按钮响应 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsBtnModify_Click(object sender, EventArgs e) { var d = new TunnelJjEntering((Tunnel)gridView1.GetFocusedRow()); if (DialogResult.OK == d.ShowDialog()) { RefreshData(); } }
/// <summary> /// 添加按钮响应 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsBtnAdd_Click(object sender, EventArgs e) { var d = new TunnelJjEntering(); if (DialogResult.OK == d.ShowDialog()) { RefreshData(); } }