mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 20:16:30 +02:00
Version 3.0.370
This commit is contained in:
parent
f5cf9bb22f
commit
bdb2dec1c1
233 changed files with 10252 additions and 6779 deletions
|
@ -377,7 +377,7 @@ namespace TINK.ViewModel.Map
|
|||
{
|
||||
// Show COPRI message once.
|
||||
await ViewService.DisplayAlert(
|
||||
AppResources.MessageTitleInformation,
|
||||
AppResources.MessageInformationTitle,
|
||||
resultStationsAndBikes.GeneralData.MerchantMessage,
|
||||
AppResources.MessageAnswerOk);
|
||||
}, null);
|
||||
|
@ -442,7 +442,7 @@ namespace TINK.ViewModel.Map
|
|||
try
|
||||
{
|
||||
// Update bikes at station or my bikes depending on context.
|
||||
await m_oViewUpdateManager.StartUpdateAyncPeridically(Polling);
|
||||
await m_oViewUpdateManager.StartAsync(Polling);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
@ -463,9 +463,9 @@ namespace TINK.ViewModel.Map
|
|||
IsNavBarVisible = true;
|
||||
|
||||
await ViewService.DisplayAlert(
|
||||
"Fehler",
|
||||
$"Beim Anzeigen der Fahrradstandorte- Seite ist ein Fehler aufgetreten.\r\n{l_oException.Message}",
|
||||
"OK");
|
||||
AppResources.ErrorPageNotLoadedTitle,
|
||||
$"{AppResources.ErrorPageNotLoaded}\r\n{l_oException.Message}",
|
||||
AppResources.MessageAnswerOk);
|
||||
|
||||
IsMapPageEnabled = true;
|
||||
}
|
||||
|
@ -512,7 +512,7 @@ namespace TINK.ViewModel.Map
|
|||
// COPRI reports an auth cookie error.
|
||||
await ViewService.DisplayAlert(
|
||||
AppResources.MessageWaring,
|
||||
AppResources.MessageMapPageErrorAuthcookieUndefined,
|
||||
AppResources.ErrorMapPageAuthcookieUndefined,
|
||||
AppResources.MessageAnswerOk);
|
||||
|
||||
IsConnected = TinkApp.GetIsConnected();
|
||||
|
@ -607,8 +607,8 @@ namespace TINK.ViewModel.Map
|
|||
&& status != Status.Granted)
|
||||
{
|
||||
var dialogResult = await ViewService.DisplayAlert(
|
||||
AppResources.MessageTitleHint,
|
||||
AppResources.MessageCenterMapLocationPermissionOpenDialog,
|
||||
AppResources.MessageHintTitle,
|
||||
AppResources.ErrorMapCenterNoLocationPermissionOpenDialog,
|
||||
AppResources.MessageAnswerYes,
|
||||
AppResources.MessageAnswerNo);
|
||||
|
||||
|
@ -727,7 +727,7 @@ namespace TINK.ViewModel.Map
|
|||
{
|
||||
Log.Information("Map page is disappearing...");
|
||||
|
||||
await m_oViewUpdateManager.StopUpdatePeridically();
|
||||
await m_oViewUpdateManager.StopAsync();
|
||||
}
|
||||
|
||||
/// <summary> User clicked on a bike. </summary>
|
||||
|
@ -764,9 +764,9 @@ namespace TINK.ViewModel.Map
|
|||
|
||||
Log.ForContext<MapPageViewModel>().Error("Fehler beim Öffnen der Ansicht \"Fahrräder an Station\" aufgetreten. {Exception}", exception);
|
||||
await ViewService.DisplayAlert(
|
||||
"Fehler",
|
||||
$"Fehler beim Öffnen der Ansicht \"Fahrräder an Station\" aufgetreten. {exception.Message}",
|
||||
"OK");
|
||||
AppResources.ErrorPageNotLoadedTitle,
|
||||
$"{AppResources.ErrorPageNotLoaded}\r\n {exception.Message}",
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -931,15 +931,11 @@ namespace TINK.ViewModel.Map
|
|||
{
|
||||
get
|
||||
{
|
||||
if (Exception != null)
|
||||
{
|
||||
// An error occurred getting data from copri.
|
||||
return Exception.GetShortErrorInfoText(TinkApp.IsReportLevelVerbose);
|
||||
}
|
||||
if (!IsConnected)
|
||||
{
|
||||
return AppResources.ActivityTextConnectionStateOffline;
|
||||
}
|
||||
//if (Exception != null)
|
||||
//{
|
||||
// // An error occurred getting data from copri.
|
||||
// return Exception.GetShortErrorInfoText(TinkApp.IsReportLevelVerbose);
|
||||
//}
|
||||
|
||||
return ActionText ?? string.Empty;
|
||||
}
|
||||
|
@ -968,9 +964,9 @@ namespace TINK.ViewModel.Map
|
|||
|
||||
Log.ForContext<MapPageViewModel>().Error("Fehler beim Öffnen der Ansicht \"Meine Räder\" aufgetreten. {Exception}", exception);
|
||||
await ViewService.DisplayAlert(
|
||||
"Fehler",
|
||||
$"Fehler beim Öffnen der Ansicht \"Meine Räder\" aufgetreten. {exception.Message}",
|
||||
"OK");
|
||||
AppResources.ErrorPageNotLoadedTitle,
|
||||
$"{AppResources.ErrorPageNotLoaded}\r\n{exception.Message}",
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1023,7 +1019,7 @@ namespace TINK.ViewModel.Map
|
|||
|
||||
// Stop polling.
|
||||
ActionText = AppResources.ActivityTextOneMomentPlease;
|
||||
await m_oViewUpdateManager.StopUpdatePeridically();
|
||||
await m_oViewUpdateManager.StopAsync();
|
||||
|
||||
// Clear error info.
|
||||
Exception = null;
|
||||
|
@ -1063,7 +1059,7 @@ namespace TINK.ViewModel.Map
|
|||
try
|
||||
{
|
||||
// Update bikes at station or my bikes depending on context.
|
||||
await m_oViewUpdateManager.StartUpdateAyncPeridically(Polling);
|
||||
await m_oViewUpdateManager.StartAsync(Polling);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
@ -1084,9 +1080,9 @@ namespace TINK.ViewModel.Map
|
|||
IsNavBarVisible = true;
|
||||
|
||||
await ViewService.DisplayAlert(
|
||||
"Fehler",
|
||||
AppResources.MessageMapPageErrorSwitch,
|
||||
String.Format(AppResources.MessageMapPageErrorSwitch, l_oException.Message),
|
||||
AppResources.ErrorPageNotLoadedTitle,
|
||||
AppResources.ErrorMapPageSwitchBikeType,
|
||||
String.Format(AppResources.ErrorMapPageSwitchBikeType, l_oException.Message),
|
||||
AppResources.MessageAnswerOk);
|
||||
|
||||
IsMapPageEnabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue