Added old and new value to confirmation dialog text

This commit is contained in:
Daniel Schick 2025-07-30 16:51:22 +02:00
parent 494e377b98
commit ad2f7afd16
4 changed files with 10 additions and 5 deletions

View File

@ -364,8 +364,8 @@ namespace ENI2.DetailViewControls
// confirm overwrite of waste disposal service provider
if (this.textBox_WasteDisposalServiceProvider.Text.Length > 0)
{
if (MessageBox.Show(Properties.Resources.textConfirmWSDPOverwrite, Properties.Resources.textConfirmation, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No)
== MessageBoxResult.No) { return; }
string message = string.Format(Properties.Resources.textConfirmWSDPOverwrite, this.textBox_WasteDisposalServiceProvider.Text, this._currentTemplate.WasteDisposalServiceProviderName);
if (MessageBox.Show(message, Properties.Resources.textConfirmation, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.No) { return; }
}
this._undoTemplate = createFromCurrentText(null, null);

View File

@ -2174,7 +2174,9 @@ namespace ENI2.Properties {
}
/// <summary>
/// Looks up a localized string similar to The existing value for the waste disposal service provider will be overwritten. Proceed?.
/// Looks up a localized string similar to The existing value for the waste disposal service provider will be overwritten.
///Current entry:{0} New entry:{1}
///Proceed?.
/// </summary>
public static string textConfirmWSDPOverwrite {
get {

View File

@ -2258,6 +2258,8 @@
<value>NSW-Status</value>
</data>
<data name="textConfirmWSDPOverwrite" xml:space="preserve">
<value>The existing value for the waste disposal service provider will be overwritten. Proceed?</value>
<value>The existing value for the waste disposal service provider will be overwritten.
Current entry:{0} New entry:{1}
Proceed?</value>
</data>
</root>

View File

@ -342,7 +342,8 @@ namespace ENI2.SheetDisplayControls
// confirm overwrite of waste disposal service provider
if (this.textBox_WasteDisposalServiceProvider.Text.Length > 0)
{
if (MessageBox.Show(Properties.Resources.textConfirmWSDPOverwrite, Properties.Resources.textConfirmation, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No)
string message = string.Format(Properties.Resources.textConfirmWSDPOverwrite, this.textBox_WasteDisposalServiceProvider.Text, this._currentTemplate.WasteDisposalServiceProviderName);
if (MessageBox.Show(message, Properties.Resources.textConfirmation, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No)
== MessageBoxResult.No) { return; }
}