| | |
| | | } |
| | | else |
| | | { |
| | | //UdpSocket._BusSocket.Start(); |
| | | //UdpSocket._BusSocket.Start(); |
| | | //if (Entity.DB_ResidenceData.residenceData.GatewayType == 1) |
| | | //{ |
| | | // BusSocket.Start(); |
| | |
| | | //} |
| | | //else |
| | | //{ |
| | | // BusSocket.Start(); |
| | | // CommonPage.InitReceiveEvent(); |
| | | //BusSocket.Start(); |
| | | //CommonPage.InitReceiveEvent(); |
| | | //} |
| | | |
| | | new System.Threading.Thread(() => |
| | |
| | | #endif |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 弹窗提示 |
| | | /// </summary> |
| | | /// <param name="mes"></param> |
| | | public static void ShowAlertOnMainThread(string mes) |
| | | { |
| | | Application.RunOnMainThread(() => { |
| | | new Alert("", mes, Language.StringByID(StringId.Close)).Show(); |
| | | }); |
| | | } |
| | | |
| | | } |
| | | } |