private void BtnEdit_Click(object sender, EventArgs e) { FormHot pFormEditHot = new FormHot(OperationType.Edit, this.currentHot); if (pFormEditHot.ShowDialog(this) == DialogResult.OK) { this.GetHotList(this.navigationControl1.Pac); MessageBox.Show(this, "热点修改成功", "提示"); } }
private void BtnAdd_Click(object sender, EventArgs e) { FormHot pFormAddHot = new FormHot(OperationType.Add); if (pFormAddHot.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { this.GetHotList(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_Hot) { var hot = item.Tag as Fire_Hot; FormHot pFormHot = new FormHot(OperationType.Check, hot); pFormHot.ShowDialog(this); } }