public async Task LoadPage() { try { if (HIOStaticValues.CheckSyncingData()) { return; } await UIService.Execute(async() => { if (HIOStaticValues.CONNECTIONBHIO == false) { Exapnder = true; } else { Exapnder = false; } if (HIOStaticValues.CheckSyncingData()) { return; } Commands ic = new Commands(); Converts conv = new Converts(); if (HIOStaticValues.CONNECTIONBHIO == true) { HIOStaticValues.commandQ.Add(() => { //Get VersioN ic.GetVersion(); // await Task.Run(() => { ic.GetVersion(); }); MyHIOTitle = Encoding.UTF8.GetString(HIOStaticValues.blea.name).Replace("\0", ""); MyHIOVersion = "Version: " + HIOStaticValues.blea.ver; MyHIOMac = "MAC: " + conv.ByteToChar(HIOStaticValues.blea.mac[0]) + ":" + conv.ByteToChar(HIOStaticValues.blea.mac[1]) + ":" + conv.ByteToChar(HIOStaticValues.blea.mac[2]) + ":" + conv.ByteToChar(HIOStaticValues.blea.mac[3]) + ":" + conv.ByteToChar(HIOStaticValues.blea.mac[4]) + ":" + conv.ByteToChar(HIOStaticValues.blea.mac[5]); }); //IsConnecting = true; } }); } catch (Exception ex) { } finally { } }