private void TsBtnAdd_Click(object sender, EventArgs e) { FrmAddMapper addMapper = new FrmAddMapper() { IsAdd = true }; addMapper.transItem += AddMapper_transItem; addMapper.ShowDialog(); }
/// <summary> /// 修改 /// </summary> private void Edit() { FrmAddMapper fm = new FrmAddMapper(); fm.transItem += AddMapper_transItem; fm.LVItem = this.lVMapper.SelectedItems[0]; fm.IsAdd = false; fm.ShowDialog(); }