private void 修改数据ToolStripMenuItem_Click(object sender, EventArgs e) { try { AddExpForm addExpForm = new AddExpForm(ExpListView.SelectedItems[0].Index, ExpListView.SelectedItems[0], this); addExpForm.ShowDialog(); } catch { } }
public AddHeaderForm(AddExpForm parentForm, String fieldName, String fieldValue, Int32 modifyIndex) { InitializeComponent(); this.parentForm = parentForm; this.modifyIndex = modifyIndex; if (String.IsNullOrEmpty(fieldName) || String.IsNullOrEmpty(fieldValue)) { return; } this.HeadNameTextBox.Text = fieldName; this.HeadValueTextBox.Text = fieldValue; }
private void 添加数据ToolStripMenuItem_Click(object sender, EventArgs e) { AddExpForm addExpForm = new AddExpForm(this); addExpForm.ShowDialog(); }