private void BtnEdit_Click(object sender, EventArgs e) { FormFireOffice pFormFireOffice = new FormFireOffice(OperationType.Edit, this.currentFireOffice); if (pFormFireOffice.ShowDialog(this) == DialogResult.OK) { this.GetFireOfficeList(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_Office) { var fireOffice = item.Tag as Fire_Office; FormFireOffice pFormFireOffice = new FormFireOffice(OperationType.Check, fireOffice); pFormFireOffice.ShowDialog(this); } }