diff --git a/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs b/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs index aaf976c8..f04d766a 100644 --- a/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs +++ b/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs @@ -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); diff --git a/ENI2/Properties/Resources.Designer.cs b/ENI2/Properties/Resources.Designer.cs index c499c4c4..2c4d1999 100644 --- a/ENI2/Properties/Resources.Designer.cs +++ b/ENI2/Properties/Resources.Designer.cs @@ -2174,7 +2174,9 @@ namespace ENI2.Properties { } /// - /// 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?. /// public static string textConfirmWSDPOverwrite { get { diff --git a/ENI2/Properties/Resources.resx b/ENI2/Properties/Resources.resx index 81f42998..1902b39a 100644 --- a/ENI2/Properties/Resources.resx +++ b/ENI2/Properties/Resources.resx @@ -2258,6 +2258,8 @@ NSW-Status - The existing value for the waste disposal service provider will be overwritten. Proceed? + The existing value for the waste disposal service provider will be overwritten. +Current entry:{0} New entry:{1} +Proceed? \ No newline at end of file diff --git a/ENI2/SheetDisplayControls/PortControl.xaml.cs b/ENI2/SheetDisplayControls/PortControl.xaml.cs index e8b70e4c..4770b831 100644 --- a/ENI2/SheetDisplayControls/PortControl.xaml.cs +++ b/ENI2/SheetDisplayControls/PortControl.xaml.cs @@ -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; } }