private void BtnEdit_Click(object sender, EventArgs e) { FormFireForestBelt pFormFireForestBelt = new FormFireForestBelt(OperationType.Edit, this.currentFireForestBelt); if (pFormFireForestBelt.ShowDialog(this) == DialogResult.OK) { this.GetFireForestBeltList(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_ForestBeltPoint) { var fireForestBelt = item.Tag as Fire_ForestBeltPoint; FormFireForestBelt pFormFireForestBelt = new FormFireForestBelt(OperationType.Check, fireForestBelt); pFormFireForestBelt.ShowDialog(this); } }