private void BtnEdit_Click(object sender, EventArgs e) { FormArtificiallake pFormArtificiallake = new FormArtificiallake(OperationType.Edit, this.currentArtificiallake); if (pFormArtificiallake.ShowDialog(this) == DialogResult.OK) { this.GetArtificiallakeList(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_Artificiallake) { var artificiallake = item.Tag as Fire_Artificiallake; FormArtificiallake pFormArtificiallake = new FormArtificiallake(OperationType.Check, artificiallake); pFormArtificiallake.ShowDialog(this); } }