diff --git a/Dialog/MainDialog.xaml.cs b/Dialog/MainDialog.xaml.cs index 2bd1e3a..6d1a596 100644 --- a/Dialog/MainDialog.xaml.cs +++ b/Dialog/MainDialog.xaml.cs @@ -94,11 +94,8 @@ private bool CheckNewDomains() { return true; } - var message = string.Format( - Properties.Resources.ConfirmNewDomains, - string.Join("\n", newDomainAddresses)); - MessageBoxResult result = MessageBox.Show(message, Properties.Resources.Warning, MessageBoxButton.YesNo); - return result == MessageBoxResult.Yes; + NewDomainDialog mainDialog = new NewDomainDialog(newDomainAddresses); + return mainDialog.ShowDialog() ?? false; } private bool IsEmbeddedImage(Outlook.Attachment item) diff --git a/Dialog/NewDomainDialog.xaml b/Dialog/NewDomainDialog.xaml new file mode 100644 index 0000000..d0fe5a4 --- /dev/null +++ b/Dialog/NewDomainDialog.xaml @@ -0,0 +1,16 @@ + + + + +