private void 新增ToolStripMenuItem_Click(object sender, EventArgs e) { FormHDetail form = new FormHDetail(DetailFormUseState.Add); if (form.ShowDialog() == DialogResult.OK) { m_Datas.Add(form.Entity); RefreshList(); } }
private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { if (lvwMain.SelectedItems.Count <= 0) return; HField field = lvwMain.SelectedItems[0].Tag as HField; FormHDetail form = new FormHDetail(DetailFormUseState.Edit); form.Entity = field; if (form.ShowDialog() == DialogResult.OK) { RefreshList(); } }
private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { if (lvwMain.SelectedItems.Count <= 0) { return; } HField field = lvwMain.SelectedItems[0].Tag as HField; FormHDetail form = new FormHDetail(DetailFormUseState.Edit); form.Entity = field; if (form.ShowDialog() == DialogResult.OK) { RefreshList(); } }