private void btnAdd_Click(object sender, EventArgs e) { frmAddIpSetting frm = new frmAddIpSetting(); if (frm.ShowDialog() == DialogResult.OK) { loadData(); } }
private void edit() { if (this.listView1.SelectedItems.Count > 0 && this.listView1.SelectedItems[0].Tag != null) { int id = this.listView1.SelectedItems[0].Tag.ToString().ToInt(0); if (id < 1) { return; } frmAddIpSetting frm = new frmAddIpSetting(id); if (frm.ShowDialog() == DialogResult.OK) { loadData(); } } else { MessageBox.Show("请选择你要修改的记录!", " 系统提示"); } }
private void edit() { if (this.listView1.SelectedItems.Count > 0 && this.listView1.SelectedItems[0].Tag != null) { int id = this.listView1.SelectedItems[0].Tag.ToString().ToInt(0); if (id < 1) return; frmAddIpSetting frm = new frmAddIpSetting(id); if (frm.ShowDialog() == DialogResult.OK) loadData(); } else MessageBox.Show("请选择你要修改的记录!", " 系统提示"); }
private void btnAdd_Click(object sender, EventArgs e) { frmAddIpSetting frm = new frmAddIpSetting(); if (frm.ShowDialog() == DialogResult.OK) loadData(); }