| | |
| | | //这个界面的背景需要白色 |
| | | bodyFrameLayout.BackgroundColor = UI.CSS.CSS_Color.MainBackgroundColor; |
| | | |
| | | #if __IOS__ |
| | | #endif |
| | | #if __Android__ |
| | | //添加接收蓝牙反馈的事件 |
| | | HdlAndroidBluetoothLogic.Current.AddReceiveEvent(this.BluetoothReceiveEvent); |
| | | #endif |
| | | //添加云端反馈事件 |
| | | HdlCloudReceiveLogic.Current.AddCloudReceiveEvent("AddMiniRemoteControlDirection4Page", this.CloudReceiveEvent); |
| | | |
| | |
| | | #endregion |
| | | |
| | | #region ■ 发送账号和密码给蓝牙_______________ |
| | | #if __IOS__ |
| | | #endif |
| | | #if __Android__ |
| | | |
| | | /// <summary> |
| | | /// 发送账号和密码给蓝牙 |
| | | /// </summary> |
| | | private void SendAccountAndPswToBluetooth() |
| | | { |
| | | #if __IOS__ |
| | | #endif |
| | | #if __Android__ |
| | | //获取发送到蓝牙的数据 |
| | | var sendData = this.GetSendToBluetoothData(); |
| | | //不等待 |
| | | HdlAndroidBluetoothLogic.Current.SendData(sendData); |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | #endregion |
| | | |
| | |
| | | public override void CloseFormBefore() |
| | | { |
| | | //摧毁蓝牙 |
| | | #if __IOS__ |
| | | #endif |
| | | #if __Android__ |
| | | HdlAndroidBluetoothLogic.Current.Dispone(); |
| | | #endif |
| | | HdlCloudReceiveLogic.Current.RemoveCloudReceiveEvent("AddMiniRemoteControlDirection4Page"); |
| | | |
| | | base.CloseFormBefore(); |