Exemple #1
0
        public void GetBatteryStatus()
        {
            var batteryStatus = _batteryService.GetBatteryStatus();

            _pageDialog.DisplayAlertAsync("Battery Status", batteryStatus, "Ok");
            _navigationService.GoBackAsync();
        }
Exemple #2
0
        async void GetBatteryStatus()
        {
            if (string.IsNullOrEmpty(UserName))
            {
                await navigationService.NavigateAsync(new Uri("LoginPage", UriKind.Relative));

                return;
            }
            var batteryStatus = batteryService.GetBatteryStatus();
            await pageDialogService.DisplayAlertAsync("Battery Status", batteryStatus, "Ok");
        }
Exemple #3
0
 async void GetBatteryStatus()
 {
     var batteryStatus = _batteryService.GetBatteryStatus();
     await _pageDialogService.DisplayAlertAsync("Battery Status", batteryStatus, "Ok");
 }
Exemple #4
0
 async void GetBatteryStatus()
 {
     //  _moduleManager.LoadModule("AuthenticationModule");
     var batteryStatus = _batteryService.GetBatteryStatus();
     await _pageDialogService.DisplayAlertAsync("Battery Status", batteryStatus, "Ok");
 }