BTool.DeviceTabsForm.SetConnHandles C# (CSharp) Method

SetConnHandles() public method

public SetConnHandles ( ushort handle ) : bool
handle ushort
return bool
        public bool SetConnHandles(ushort handle)
        {
            bool flag = true;
            devForm.HCIExt_DisconnectImmed.connHandle = handle;
            devForm.HCIExt_PER.connHandle = handle;
            devForm.L2CAP_InfoReq.connHandle = handle;
            devForm.L2CAP_ConnParamUpdateReq.connHandle = handle;
            devForm.ATT_ErrorRsp.connHandle = handle;
            devForm.ATT_ExchangeMTUReq.connHandle = handle;
            devForm.ATT_ExchangeMTURsp.connHandle = handle;
            devForm.ATT_FindInfoReq.connHandle = handle;
            devForm.ATT_FindInfoRsp.connHandle = handle;
            devForm.ATT_FindByTypeValueReq.connHandle = handle;
            devForm.ATT_FindByTypeValueRsp.connHandle = handle;
            devForm.ATT_ReadByTypeReq.connHandle = handle;
            devForm.ATT_ReadByTypeRsp.connHandle = handle;
            devForm.ATT_ReadReq.connHandle = handle;
            devForm.ATT_ReadRsp.connHandle = handle;
            devForm.ATT_ReadBlobReq.connHandle = handle;
            devForm.ATT_ReadBlobRsp.connHandle = handle;
            devForm.ATT_ReadMultiReq.connHandle = handle;
            devForm.ATT_ReadMultiRsp.connHandle = handle;
            devForm.ATT_ReadByGrpTypeReq.connHandle = handle;
            devForm.ATT_ReadByGrpTypeRsp.connHandle = handle;
            devForm.ATT_WriteReq.connHandle = handle;
            devForm.ATT_WriteRsp.connHandle = handle;
            devForm.ATT_PrepareWriteReq.connHandle = handle;
            devForm.ATT_PrepareWriteRsp.connHandle = handle;
            devForm.ATT_ExecuteWriteReq.connHandle = handle;
            devForm.ATT_ExecuteWriteRsp.connHandle = handle;
            devForm.ATT_HandleValueNotification.connHandle = handle;
            devForm.ATT_HandleValueIndication.connHandle = handle;
            devForm.ATT_HandleValueConfirmation.connHandle = handle;
            devForm.GATT_ExchangeMTU.connHandle = handle;
            devForm.GATT_DiscAllPrimaryServices.connHandle = handle;
            devForm.GATT_DiscPrimaryServiceByUUID.connHandle = handle;
            devForm.GATT_FindIncludedServices.connHandle = handle;
            devForm.GATT_DiscAllChars.connHandle = handle;
            devForm.GATT_DiscCharsByUUID.connHandle = handle;
            devForm.GATT_DiscAllCharDescs.connHandle = handle;
            devForm.GATT_ReadCharValue.connHandle = handle;
            devForm.GATT_ReadUsingCharUUID.connHandle = handle;
            devForm.GATT_ReadLongCharValue.connHandle = handle;
            devForm.GATT_ReadMultiCharValues.connHandle = handle;
            devForm.GATT_WriteNoRsp.connHandle = handle;
            devForm.GATT_SignedWriteNoRsp.connHandle = handle;
            devForm.GATT_WriteCharValue.connHandle = handle;
            devForm.GATT_WriteLongCharValue.connHandle = handle;
            devForm.GATT_ReliableWrites.connHandle = handle;
            devForm.GATT_ReadCharDesc.connHandle = handle;
            devForm.GATT_ReadLongCharDesc.connHandle = handle;
            devForm.GATT_WriteCharDesc.connHandle = handle;
            devForm.GATT_WriteLongCharDesc.connHandle = handle;
            devForm.GATT_Notification.connHandle = handle;
            devForm.GATT_Indication.connHandle = handle;
            devForm.GAP_TerminateLinkRequest.connHandle = handle;
            devForm.GAP_Authenticate.connHandle = handle;
            devForm.GAP_PasskeyUpdate.connHandle = handle;
            devForm.GAP_SlaveSecurityRequest.connHandle = handle;
            devForm.GAP_Signable.connHandle = handle;
            devForm.GAP_Bond.connHandle = handle;
            devForm.GAP_TerminateAuth.connHandle = handle;
            devForm.GAP_UpdateLinkParamReq.connHandle = handle;
            devForm.HCIOther_ReadRSSI.connHandle = handle;
            pgAdvCmds.Invalidate();
            ((Control)pgAdvCmds).Refresh();
            tvAdvCmdList.Invalidate();
            tvAdvCmdList.Refresh();
            tbTermConnHandle.Text = "0x" + handle.ToString("X4");
            tbReadConnHandle.Text = "0x" + handle.ToString("X4");
            tbWriteConnHandle.Text = "0x" + handle.ToString("X4");
            tbPairingConnHandle.Text = "0x" + handle.ToString("X4");
            tbPasskeyConnHandle.Text = "0x" + handle.ToString("X4");
            tbBondConnHandle.Text = "0x" + handle.ToString("X4");
            return flag;
        }
DeviceTabsForm