| | |
| | | } |
| | | HDL_ON.MainPage.Show(); |
| | | |
| | | //侦测网络变化 |
| | | Reachability.ReachabilityChanged += UpdateStatus; |
| | | try |
| | | { |
| | | //侦测网络变化 |
| | | Reachability.ReachabilityChanged += UpdateStatus; |
| | | |
| | | UITapGestureRecognizer oTapRecognizer = new UITapGestureRecognizer(); |
| | | oTapRecognizer.CancelsTouchesInView = false; |
| | | oTapRecognizer.AddTarget( |
| | | this, |
| | | new ObjCRuntime.Selector("ViewTappedSelector:") |
| | | ); |
| | | this.View.AddGestureRecognizer(oTapRecognizer); |
| | | UITapGestureRecognizer oTapRecognizer = new UITapGestureRecognizer(); |
| | | oTapRecognizer.CancelsTouchesInView = false; |
| | | oTapRecognizer.AddTarget( |
| | | this, |
| | | new ObjCRuntime.Selector("ViewTappedSelector:") |
| | | ); |
| | | this.View.AddGestureRecognizer(oTapRecognizer); |
| | | MainPage.InternetStatus = (int)Reachability.InternetConnectionStatus(); |
| | | //HDLCommon.Current.UpdateInternetStatus((int)Reachability.InternetConnectionStatus(), SharedMethod.SharedMethod.IsBackground); |
| | | } |
| | | catch |
| | | { |
| | | |
| | | } |
| | | } |
| | | public override UIStatusBarStyle PreferredStatusBarStyle() |
| | | { |