mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-23 05:16:29 +02:00
Version 3.0.370
This commit is contained in:
parent
f5cf9bb22f
commit
bdb2dec1c1
233 changed files with 10252 additions and 6779 deletions
|
@ -252,18 +252,18 @@ namespace TINK.ViewModel.Account
|
|||
return string.Empty;
|
||||
}
|
||||
|
||||
var bookingStateInfo = string.Format("Aktuell {0} Fahrräder reserviert/ gebucht.", m_iMyBikesCount.Value);
|
||||
var bookingStateInfo = string.Format(AppResources.MarkingAccountReservedBookedBikes, m_iMyBikesCount.Value);
|
||||
|
||||
if (!IsConnected)
|
||||
{
|
||||
// Append offline info
|
||||
return $"{bookingStateInfo} Verbindungsstatus: Offline.";
|
||||
return $"{bookingStateInfo} {AppResources.MarkingAccountConnectionOffline}";
|
||||
}
|
||||
|
||||
if (Exception != null)
|
||||
{
|
||||
// Append offline info
|
||||
return $"{bookingStateInfo} Verbindungstatus: Verbindung unterbrochen. ";
|
||||
return $"{bookingStateInfo} {AppResources.MarkingAccountConnectionInterrupted} ";
|
||||
}
|
||||
|
||||
return bookingStateInfo;
|
||||
|
@ -289,9 +289,9 @@ namespace TINK.ViewModel.Account
|
|||
else
|
||||
{
|
||||
await m_oViewService.DisplayAlert(
|
||||
"Hinweis",
|
||||
"Bitte mit Internet verbinden zum Verwalten der persönlichen Daten.",
|
||||
"OK");
|
||||
AppResources.MessageHintTitle,
|
||||
AppResources.ErrorNoWeb,
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -306,10 +306,10 @@ namespace TINK.ViewModel.Account
|
|||
try
|
||||
{
|
||||
// Backup logout message before logout.
|
||||
var l_oMessage = string.Format("Benutzer {0} abgemeldet.", TinkApp.ActiveUser.Mail);
|
||||
var l_oMessage = string.Format(AppResources.MessageLogoutGoodbye, TinkApp.ActiveUser.Mail);
|
||||
|
||||
// Stop polling before requesting bike.
|
||||
await m_oViewUpdateManager.StopUpdatePeridically();
|
||||
await m_oViewUpdateManager.StopAsync();
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -320,12 +320,12 @@ namespace TINK.ViewModel.Account
|
|||
catch (UnsupportedCopriVersionDetectedException)
|
||||
{
|
||||
await m_oViewService.DisplayAlert(
|
||||
AppResources.MessageLogoutErrorTitle,
|
||||
AppResources.ErrorLogoutTitle,
|
||||
string.Format(AppResources.MessageAppVersionIsOutdated, TinkApp.Flavor.GetDisplayName()),
|
||||
AppResources.MessageAnswerOk);
|
||||
|
||||
// Restart polling again.
|
||||
await m_oViewUpdateManager.StartUpdateAyncPeridically(Polling.ToImmutable());
|
||||
await m_oViewUpdateManager.StartAsync(Polling.ToImmutable());
|
||||
|
||||
IsIdle = true;
|
||||
StatusInfoText = string.Empty;
|
||||
|
@ -337,17 +337,20 @@ namespace TINK.ViewModel.Account
|
|||
if (l_oException is WebConnectFailureException)
|
||||
{
|
||||
await m_oViewService.DisplayAlert(
|
||||
"Verbingungsfehler bei Abmeldung!",
|
||||
string.Format("{0}\r\n{1}", l_oException.Message, WebConnectFailureException.GetHintToPossibleExceptionsReasons),
|
||||
"OK");
|
||||
AppResources.ErrorLogoutTitle,
|
||||
AppResources.ErrorNoWeb,
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
else
|
||||
{
|
||||
await m_oViewService.DisplayAlert("Fehler bei Abmeldung!", l_oException.Message, "OK");
|
||||
await m_oViewService.DisplayAlert(
|
||||
AppResources.ErrorLogoutTitle,
|
||||
l_oException.Message,
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
|
||||
// Restart polling again.
|
||||
await m_oViewUpdateManager.StartUpdateAyncPeridically(Polling.ToImmutable());
|
||||
await m_oViewUpdateManager.StartAsync(Polling.ToImmutable());
|
||||
|
||||
IsIdle = true;
|
||||
StatusInfoText = string.Empty;
|
||||
|
@ -356,8 +359,11 @@ namespace TINK.ViewModel.Account
|
|||
|
||||
TinkApp.ActiveUser.Logout();
|
||||
|
||||
// Display information that log out was perfomrmed.
|
||||
await m_oViewService.DisplayAlert("Auf Wiedersehen!", l_oMessage, "OK");
|
||||
// Display information that log out was performed.
|
||||
await m_oViewService.DisplayAlert(
|
||||
AppResources.MessageLogoutGoodbyeTitle,
|
||||
l_oMessage,
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
catch (Exception p_oException)
|
||||
{
|
||||
|
@ -428,7 +434,7 @@ namespace TINK.ViewModel.Account
|
|||
try
|
||||
{
|
||||
// Update bikes at station or my bikes depending on context.
|
||||
await m_oViewUpdateManager.StartUpdateAyncPeridically(Polling.ToImmutable());
|
||||
await m_oViewUpdateManager.StartAsync(Polling.ToImmutable());
|
||||
}
|
||||
catch (Exception l_oExcetion)
|
||||
{
|
||||
|
@ -445,15 +451,15 @@ namespace TINK.ViewModel.Account
|
|||
{
|
||||
Log.ForContext<AccountPageViewModel>().Information($"Entering {nameof(OnDisappearing)}...");
|
||||
|
||||
await m_oViewUpdateManager.StopUpdatePeridically();
|
||||
await m_oViewUpdateManager.StopAsync();
|
||||
|
||||
}
|
||||
catch (Exception l_oException)
|
||||
{
|
||||
await m_oViewService.DisplayAlert(
|
||||
"Fehler",
|
||||
$"Ein unerwarteter Fehler ist aufgetreten. \r\n{l_oException.Message}",
|
||||
"OK");
|
||||
AppResources.ErrorPageNotLoadedTitle,
|
||||
$"{AppResources.ErrorPageNotLoaded}\r\n{l_oException.Message}",
|
||||
AppResources.MessageAnswerOk);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue