private void BtnEdit_Click(object sender, EventArgs e) { FormDFacilities pFormDFacilities = new FormDFacilities(OperationType.Edit, this.currentDFacilities); if (pFormDFacilities.ShowDialog(this) == DialogResult.OK) { this.GetDFacilitiesList(this.navigationControl1.Pac); MessageBox.Show(this, "林区危险及重要性设备设施修改成功", "提示"); } }
private void listView1_MouseDoubleClick(object sender, MouseEventArgs e) { ListViewItem item = listView1.GetItemAt(e.X, e.Y); if (item.Tag is Fire_DangerousFacilities) { var dFacilities = item.Tag as Fire_DangerousFacilities; FormDFacilities pFormDFacilities = new FormDFacilities(OperationType.Check, dFacilities); pFormDFacilities.ShowDialog(this); } }