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(); } }
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(); } }
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(); } } }
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(); } } }