Ejemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmDHCPCustomer_Update frm = new frmDHCPCustomer_Update(true, "Thêm Modem ", null, null);
     frm.Owner = this;
     frm.ShowDialog();
     if (frm.add_edit)
     {
         NW_Dhcp_Customer_Getlist_MySQL();
     }
 }
Ejemplo n.º 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmDHCPCustomer_Update frm = new frmDHCPCustomer_Update(true, "Thêm Modem ", null, null);

            frm.Owner = this;
            frm.ShowDialog();
            if (frm.add_edit)
            {
                NW_Dhcp_Customer_Getlist_MySQL();
            }
        }
Ejemplo n.º 3
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gridItemDetail.FocusedRowHandle > -1)
     {
         string code = "";
         code = gridItemDetail.GetFocusedRowCellValue(colIpAddress).ToString();
         frmDHCPCustomer_Update frm = new frmDHCPCustomer_Update(false, "Cập nhật Modem ", null, code);
         frm.Owner = this;
         frm.ShowDialog();
         if (frm.add_edit)
         {
             NW_Dhcp_Customer_Getlist_MySQL();
         }
     }
 }
Ejemplo n.º 4
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gridItemDetail.FocusedRowHandle > -1)
     {
         string code="";
         code= gridItemDetail.GetFocusedRowCellValue(colIpAddress).ToString();
         frmDHCPCustomer_Update frm = new frmDHCPCustomer_Update(false, "Cập nhật Modem ", null, code);
         frm.Owner = this;
         frm.ShowDialog();
         if (frm.add_edit)
         {
             NW_Dhcp_Customer_Getlist_MySQL();
         }
     }
 }