Added old and new value to confirmation dialog text
This commit is contained in:
parent
494e377b98
commit
ad2f7afd16
@ -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);
|
||||
|
||||
4
ENI2/Properties/Resources.Designer.cs
generated
4
ENI2/Properties/Resources.Designer.cs
generated
@ -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 {
|
||||
|
||||
@ -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>
|
||||
@ -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; }
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user