From 4abd5025f5fb190af8c838b3c3cdbd651403859f Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 4 Sep 2023 12:28:58 +0200 Subject: [PATCH] add confirmation dialog if password was changed successfully --- src/BreCalClient/AboutDialog.xaml | 2 +- src/BreCalClient/MainWindow.xaml.cs | 1 + .../Resources/Resources.Designer.cs | 18 ++++++++++++++++++ src/BreCalClient/Resources/Resources.de.resx | 6 ++++++ src/BreCalClient/Resources/Resources.resx | 6 ++++++ 5 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/BreCalClient/AboutDialog.xaml b/src/BreCalClient/AboutDialog.xaml index b45900a..b14d21f 100644 --- a/src/BreCalClient/AboutDialog.xaml +++ b/src/BreCalClient/AboutDialog.xaml @@ -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"> diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs index 6e672d9..18a71ca 100644 --- a/src/BreCalClient/MainWindow.xaml.cs +++ b/src/BreCalClient/MainWindow.xaml.cs @@ -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) { diff --git a/src/BreCalClient/Resources/Resources.Designer.cs b/src/BreCalClient/Resources/Resources.Designer.cs index 8d46401..468eaee 100644 --- a/src/BreCalClient/Resources/Resources.Designer.cs +++ b/src/BreCalClient/Resources/Resources.Designer.cs @@ -334,6 +334,15 @@ namespace BreCalClient.Resources { } } + /// + /// Looks up a localized string similar to Confirmation. + /// + public static string textConfirmation { + get { + return ResourceManager.GetString("textConfirmation", resourceCulture); + } + } + /// /// Looks up a localized string similar to Departure terminal. /// @@ -559,6 +568,15 @@ namespace BreCalClient.Resources { } } + /// + /// Looks up a localized string similar to Password changed.. + /// + public static string textPasswordChanged { + get { + return ResourceManager.GetString("textPasswordChanged", resourceCulture); + } + } + /// /// Looks up a localized string similar to Pier side. /// diff --git a/src/BreCalClient/Resources/Resources.de.resx b/src/BreCalClient/Resources/Resources.de.resx index 99f7bf4..f4bff42 100644 --- a/src/BreCalClient/Resources/Resources.de.resx +++ b/src/BreCalClient/Resources/Resources.de.resx @@ -364,4 +364,10 @@ Eingabe löschen + + Bestätigung + + + Passwort geändert. + \ No newline at end of file diff --git a/src/BreCalClient/Resources/Resources.resx b/src/BreCalClient/Resources/Resources.resx index 622a45c..676bb19 100644 --- a/src/BreCalClient/Resources/Resources.resx +++ b/src/BreCalClient/Resources/Resources.resx @@ -205,6 +205,9 @@ Close + + Confirmation + Departure terminal @@ -280,6 +283,9 @@ Password + + Password changed. + Pier side