| | |
| | | public override void OnResignActivation(UIApplication application) |
| | | { |
| | | Console.WriteLine("OnResignActivation"); |
| | | BusSocket.Stop(); |
| | | OnAppConfig.Instance.unlockTime = DateTime.Now; |
| | | //BusSocket.Stop(); |
| | | } |
| | | |
| | | public override void DidEnterBackground(UIApplication application) |
| | |
| | | public override void WillEnterForeground(UIApplication application) |
| | | { |
| | | SharedMethod.SharedMethod.IsBackground = false; |
| | | BusSocket.Start(6000); |
| | | //BusSocket.Start(); |
| | | new AppUnlockPage().LoadPage(); |
| | | Console.WriteLine("WillEnterForeground"); |
| | | UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; |
| | |
| | | application.StatusBarStyle = UIStatusBarStyle.DarkContent; |
| | | |
| | | string nsCount = NSLocale.CurrentLocale.CountryCode; |
| | | if (nsCount != OnAppConfig.Instance.CountryCode) |
| | | |
| | | if (MainPage.LoginUser != null && nsCount != MainPage.LoginUser.areaCode.ToString()) |
| | | { |
| | | OnAppConfig.Instance.CountryCode = nsCount; |
| | | int.TryParse(nsCount,out MainPage.LoginUser.areaCode); |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | } |
| | | application.IdleTimerDisabled = true; |