BTool.DeviceForm.OnConnectionNotify C# (CSharp) Method

OnConnectionNotify() protected method

protected OnConnectionNotify ( ConnectInfo &tmpConnectInfo ) : void
tmpConnectInfo ConnectInfo
return void
        protected void OnConnectionNotify(ref ConnectInfo tmpConnectInfo)
        {
            ++numConnections;
            connectInfo = tmpConnectInfo;
            Connections.Add(connectInfo);
            ConnectionNotify(this, EventArgs.Empty);
            DisplayMsg(SharedAppObjs.MsgType.Info, "Device Connected\nHandle = 0x" + connectInfo.Handle.ToString("X4") + "\nAddr Type = 0x" + connectInfo.AddrType.ToString("X2") + " (" + devUtils.GetGapAddrTypeStr(connectInfo.AddrType) + ")\nBDAddr = " + connectInfo.BDA + "\n");
            attributesForm.RemoveData(connectInfo.Handle);
        }