| | |
| | | { |
| | | public partial class ViewController : ViewControllerBase |
| | | { |
| | | |
| | | public override void ViewWillAppear(bool animated) |
| | | { |
| | | base.ViewWillAppear(animated); |
| | | //2021-02-01 设置NavigationBarHidden true |
| | | if (this.NavigationController != null) |
| | | { |
| | | this.NavigationController.NavigationBar.Hidden = true; |
| | | this.NavigationController.NavigationBar.TintColor = UIColor.Black; |
| | | } |
| | | } |
| | | |
| | | public override void ViewDidLoad() |
| | | { |
| | | base.ViewDidLoad(); |
| | |
| | | { |
| | | Language.CurrentLanguage = OnAppConfig.Instance.SetLanguage; |
| | | } |
| | | #if DEBUG |
| | | Language.CurrentLanguage = "English"; |
| | | #endif |
| | | HDL_ON.MainPage.Show(); |
| | | |
| | | try |
| | |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | public override UIStatusBarStyle PreferredStatusBarStyle() |
| | | { |
| | |
| | | internetStatus = Reachability.InternetConnectionStatus(); |
| | | //MainPage.Log($"网络状态变化,当前网络:{internetStatus}"); |
| | | //网络变化处理 |
| | | HDLCommon.Current.UpdateInternetStatus((int)internetStatus, SharedMethod.SharedMethod.IsBackground); |
| | | HDLCommon.Current.UpdateInternetStatus((int)internetStatus, MainPage.IsEnterBackground); |
| | | |
| | | //if (internetStatus == NetworkStatus.NotReachable)//没有网络连接 0 |
| | | //{ |