private void BtnEdit_Click(object sender, EventArgs e) { FormFireDocument pFormFireDocument = new FormFireDocument(OperationType.Edit, this.currentFireDocument); if (pFormFireDocument.ShowDialog(this) == DialogResult.OK) { this.GetFireDocumentList(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_Document) { var fireDocument = item.Tag as Fire_Document; FormFireDocument pFormFireDocument = new FormFireDocument(OperationType.Check, fireDocument); pFormFireDocument.ShowDialog(this); } }