| | |
| | | using Microsoft.AppCenter.Analytics; |
| | | using Microsoft.AppCenter.Crashes; |
| | | using Shared; |
| | | using Shared.SimpleControl; |
| | | using UIKit; |
| | | using UserNotifications; |
| | | |
| | |
| | | AppCenter.Start ("44cbdfbf-d33e-4e92-a795-1c4452e54d3e", typeof (Analytics), typeof (Crashes)); |
| | | Utlis.WriteLine ("FinishedLaunching"); |
| | | //Shared.Application.IsGpsEnable = false; |
| | | //Shared.Application.IsUsePingFang = true; |
| | | |
| | | base.FinishedLaunching (application, launchOptions); |
| | | |
| | | |
| | | SharedMethod.SharedMethod.sharedApp = application; |
| | | |
| | |
| | | //com.freeview.global.Video.FVapplicationDidBecomeActive (application); |
| | | } |
| | | |
| | | //DateTime closeTime = DateTime.MinValue; |
| | | DateTime closeTime = DateTime.MinValue; |
| | | /// <summary> |
| | | /// BusSocketStop |
| | | /// </summary> |
| | | void BusSocketStop () |
| | | { |
| | | Shared.BusSocket.Stop (); |
| | | //closeTime = DateTime.Now; |
| | | closeTime = DateTime.Now; |
| | | } |
| | | |
| | | |
| | |
| | | void BusSocketStart () |
| | | { |
| | | |
| | | if (closeTime == DateTime.MinValue) { |
| | | closeTime = DateTime.Now; |
| | | } else if (closeTime.AddSeconds (20) < DateTime.Now) { |
| | | if (CommonPage.IsRemote) { |
| | | SmartHome.MqttCommon.DisConnectRemoteMqttClient ("closeTime"); |
| | | } |
| | | } |
| | | |
| | | //if (closeTime == DateTime.MinValue) { |
| | | // closeTime = DateTime.Now; |
| | | //} else if (closeTime.AddMinutes (2) > DateTime.Now) { |