wei
2020-12-11 488efb508eb0648773fe7b68e810e04bcd7ca075
HDL-ON_iOS/AppDelegate.cs
@@ -165,8 +165,8 @@
        public override void OnResignActivation(UIApplication application)
        {
            Console.WriteLine("OnResignActivation");
            OnAppConfig.Instance.unlockTime = DateTime.Now;
            //BusSocket.Stop();
            UserInfo.Current.unlockTime = DateTime.Now;
            HDL_ON.DriverLayer.UdpSocket._BusSocket.Stop();
        }
        public override void DidEnterBackground(UIApplication application)
@@ -179,10 +179,11 @@
        public override void WillEnterForeground(UIApplication application)
        {
            SharedMethod.SharedMethod.IsBackground = false;
            //BusSocket.Start();
            HDL_ON.DriverLayer.UdpSocket._BusSocket.Start();
            new AppUnlockPage().LoadPage();
            Console.WriteLine("WillEnterForeground");
            UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
            HDL_ON.DriverLayer.Control.Ins.SearchLoaclGateway();
        }
        public override void WillTerminate(UIApplication application)
@@ -194,7 +195,7 @@
        {
            Console.WriteLine("OnActivated");
            base.OnActivated(application);
            Console.WriteLine("oooo...");
            //if (haveToSignOut == true)
            //{
                ////强制下线
@@ -210,6 +211,7 @@
        {
            //Shared.Application.FontSize = 12;
            Shared.Application.IsEditTextContentTypePassword = false;
            Shared.Application.IsUsePingFang = true;
            Window = new UIWindow(UIScreen.MainScreen.Bounds);
            rootViewController = new UINavigationController(new ViewController()) { NavigationBarHidden = true };