add confirmation dialog if password was changed successfully

This commit is contained in:
Daniel Schick 2023-09-04 12:28:58 +02:00
parent c3f16f4b20
commit 4abd5025f5
5 changed files with 32 additions and 1 deletions

View File

@ -7,7 +7,7 @@
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:p = "clr-namespace:BreCalClient.Resources"
mc:Ignorable="d"
Title="Help" Height="270" Width="500">
Title="Help" Height="280" Width="500">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180" />

View File

@ -159,6 +159,7 @@ namespace BreCalClient
try
{
await _api.UserPutAsync(ud);
MessageBox.Show(BreCalClient.Resources.Resources.textPasswordChanged, BreCalClient.Resources.Resources.textConfirmation, MessageBoxButton.OK, MessageBoxImage.Information);
}
catch (Exception ex)
{

View File

@ -334,6 +334,15 @@ namespace BreCalClient.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Confirmation.
/// </summary>
public static string textConfirmation {
get {
return ResourceManager.GetString("textConfirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Departure terminal.
/// </summary>
@ -559,6 +568,15 @@ namespace BreCalClient.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Password changed..
/// </summary>
public static string textPasswordChanged {
get {
return ResourceManager.GetString("textPasswordChanged", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Pier side.
/// </summary>

View File

@ -364,4 +364,10 @@
<data name="textClearValue" xml:space="preserve">
<value>Eingabe löschen</value>
</data>
<data name="textConfirmation" xml:space="preserve">
<value>Bestätigung</value>
</data>
<data name="textPasswordChanged" xml:space="preserve">
<value>Passwort geändert.</value>
</data>
</root>

View File

@ -205,6 +205,9 @@
<data name="textClose" xml:space="preserve">
<value>Close</value>
</data>
<data name="textConfirmation" xml:space="preserve">
<value>Confirmation</value>
</data>
<data name="textDepartureTerminal" xml:space="preserve">
<value>Departure terminal</value>
</data>
@ -280,6 +283,9 @@
<data name="textPassword" xml:space="preserve">
<value>Password</value>
</data>
<data name="textPasswordChanged" xml:space="preserve">
<value>Password changed.</value>
</data>
<data name="textPierside" xml:space="preserve">
<value>Pier side</value>
</data>