/// <summary> /// 添加按钮响应 /// </summary> /// <params name="sender"></params> /// <params name="e"></params> private void tsBtnAdd_Click(object sender, EventArgs e) { var wireInfoForm = new WireInfoEntering(); if (DialogResult.OK == wireInfoForm.ShowDialog()) { RefreshData(); } }
/// <summary> /// 修改按钮响应 /// </summary> /// <params name="sender"></params> /// <params name="e"></params> private void tsBtnModify_Click(object sender, EventArgs e) { var wire = (Wire)gridView1.GetFocusedRow(); if (wire == null) { Alert.AlertMsg("请选择要修改的巷道"); return; } var wireInfoForm = new WireInfoEntering(wire); if (DialogResult.OK == wireInfoForm.ShowDialog()) { RefreshData(); } }