diff --git a/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs b/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs
index 641f771cb9b..d9ad8e907d0 100644
--- a/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs
+++ b/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs
@@ -122,6 +122,31 @@ public static MessageBoxResult Show(string messageBoxText, string caption, Messa
dynamoMessageBox.ShowDialog();
return dynamoMessageBox.CustomDialogResult;
}
+ ///
+ /// Displays a dialog to the user and returns their choice as a MessageBoxResult.
+ ///
+ /// owner window
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static MessageBoxResult Show(Window owner,string messageBoxText, string caption, MessageBoxButton button,
+ MessageBoxImage icon)
+ {
+ var dynamoMessageBox = new DynamoMessageBox
+ {
+ BodyText = messageBoxText,
+ TitleText = caption,
+ MessageBoxButton = button,
+ MessageBoxImage = icon,
+ Owner = owner
+ };
+
+ dynamoMessageBox.ConfigureButtons(button);
+ dynamoMessageBox.ShowDialog();
+ return dynamoMessageBox.CustomDialogResult;
+ }
///
/// Displays a dialog to the user and returns their choice as a MessageBoxResult.
diff --git a/src/DynamoCoreWpf/Utilities/MessageBoxUtilities.cs b/src/DynamoCoreWpf/Utilities/MessageBoxUtilities.cs
index 9b229b4c68d..bdbe8a30d29 100644
--- a/src/DynamoCoreWpf/Utilities/MessageBoxUtilities.cs
+++ b/src/DynamoCoreWpf/Utilities/MessageBoxUtilities.cs
@@ -10,6 +10,7 @@ internal class MessageBoxService {
internal interface IMessageBox
{
MessageBoxResult Show(string msg, string title, MessageBoxButton button, MessageBoxImage img);
+ MessageBoxResult Show(Window owner,string msg, string title, MessageBoxButton button, MessageBoxImage img);
MessageBoxResult Show(string msg, string title, MessageBoxButton button, IEnumerable buttonNames, MessageBoxImage img);
}
@@ -21,6 +22,12 @@ MessageBoxResult IMessageBox.Show(string msg, string title, MessageBoxButton but
{
return DynamoMessageBox.Show(msg, title, button, img);
}
+
+ public MessageBoxResult Show(Window owner, string msg, string title, MessageBoxButton button, MessageBoxImage img)
+ {
+ return DynamoMessageBox.Show(owner,msg, title, button, img);
+ }
+
MessageBoxResult IMessageBox.Show(string msg, string title, MessageBoxButton button, IEnumerable buttonNames, MessageBoxImage img)
{
return DynamoMessageBox.Show(msg, title, button,buttonNames, img);
@@ -36,6 +43,10 @@ internal static MessageBoxResult Show(string msg, string title, MessageBoxButton
{
return (msg_box ?? (msg_box = new DefaultMessageBox())).Show(msg, title, button, img);
}
+ internal static MessageBoxResult Show(Window owner,string msg, string title, MessageBoxButton button, MessageBoxImage img)
+ {
+ return (msg_box ?? (msg_box = new DefaultMessageBox())).Show(owner,msg, title, button, img);
+ }
internal static MessageBoxResult Show(string msg, string title, MessageBoxButton button, IEnumerable buttonNames, MessageBoxImage img)
{
return (msg_box ?? (msg_box = new DefaultMessageBox())).Show(msg, title, button, buttonNames, img);
diff --git a/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs b/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs
index 6a3035e7f02..c7dea153482 100644
--- a/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs
+++ b/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs
@@ -187,6 +187,8 @@ public class PackageManagerClientViewModel : NotificationObject, IPackageInstall
#region Properties/Fields
+ public PackageManagerSearchView Owner { get; set; }
+
ObservableCollection _uploads = new ObservableCollection();
public ObservableCollection Uploads
{
@@ -421,10 +423,11 @@ private void ShowNodePublishInfo(ICollection
+
@@ -50,7 +51,7 @@
-
+
-
+
@@ -483,77 +516,81 @@
-