예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddIpSetting frm = new frmAddIpSetting();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadData();
            }
        }
예제 #2
0
 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("请选择你要修改的记录!", " 系统提示");
     }
 }
예제 #3
0
 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("请选择你要修改的记录!", " 系统提示");
 }
예제 #4
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmAddIpSetting frm = new frmAddIpSetting();
     if (frm.ShowDialog() == DialogResult.OK)
         loadData();
 }