コード例 #1
0
        /// <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";
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        /// <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();
            }
        }