/// <summary> /// Initializes application. /// </summary> public App() { InitializeComponent(); DependencyService.Get <IPageNavigation>().CreateWelcomePage(); IInformationPopupService popupService = DependencyService.Get <IInformationPopupService>(); popupService.LoadingText = "Loading"; popupService.ErrorPopupText = "Connection failed."; popupService.ErrorPopupButtonText = "OK"; }
/// <summary> /// Initializes application popups. /// </summary> private void InitializeApplicationPopups() { IInformationPopupService popupService = DependencyService.Get <IInformationPopupService>(); popupService.NoResultsPopupText = NO_RESULTS_POPUP_TEXT; popupService.NoResultsPopupButtonText = OK_POPUP_BUTTON_TEXT; popupService.ConnectionFailedPopupText = CONNECTION_FAILED_POPUP_TEXT; popupService.ConnectionFailedPopupButtonText = OK_POPUP_BUTTON_TEXT; popupService.FindMoreMarkersPopupText = FIND_MORE_MARKERS_POPUP_TEXT; popupService.FindMoreMarkersPopupButtonText = OK_POPUP_BUTTON_TEXT; }
/// <summary> /// Initializes application. /// </summary> public App() { IInformationPopupService popupService = DependencyService.Get <IInformationPopupService>(); popupService.ErrorPopupText = "Currently there is no information about battery usage."; popupService.ErrorPopupButtonText = "BACK"; if (DependencyService.Get <IPrivilegeService>().AllPermissionsGranted()) { DependencyService.Get <IPageNavigation>().CreateWelcomePage(); } else { DependencyService.Get <IPageNavigation>().CreatePrivilegeDeniedPage(); } }