From 47297b58166bc2f208250cf69a31352b9463a9af Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" <173288704@qq.com> Date: Thu, 23 May 2024 15:37:00 -0400 Subject: [PATCH] [DYN-2316] Fix what's broken (#15242) --- .gitignore | 1 + .../UI/Prompts/DynamoMessageBox.xaml.cs | 35 ------------------- 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 9ea32170778..522a225f4d9 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,4 @@ dynamods-splash-screen-*.tgz /src/Notifications/dynamods-notifications-center-*.tgz /src/DynamoCoreWpf/.npmrc /src/Notifications/.npmrc +src/LibraryViewExtensionWebView2/.npmrc \ No newline at end of file diff --git a/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs b/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs index df2ea0a7a5a..08e13071e6e 100644 --- a/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs +++ b/src/DynamoCoreWpf/UI/Prompts/DynamoMessageBox.xaml.cs @@ -266,41 +266,6 @@ public static MessageBoxResult Show(Window owner, string messageBoxText, string return dynamoMessageBox.CustomDialogResult; } - /// - /// Displays a dialog to the user and returns their choice as a MessageBoxResult. - /// - /// owning window of the messagebox - /// Content of the message - /// MessageBox title - /// Provide a list of flags that can be used to customize the dialog box, e.g Scrollable - /// Type of button shown in the MessageBox: Ok, OkCancel; etc - /// Type of message: Warning, Error - /// - public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, Dictionary flags, MessageBoxButton button, - MessageBoxImage icon) - { - var dynamoMessageBox = new DynamoMessageBox - { - BodyText = messageBoxText, - TitleText = caption, - MessageBoxButton = button, - MessageBoxImage = icon - }; - if (owner != null && owner.IsLoaded) - { - dynamoMessageBox.Owner = owner; - } - - if (flags.TryGetValue(DialogFlags.Scrollable, out bool scrollable) && scrollable) - { - dynamoMessageBox.BodyTextBlock.Visibility = Visibility.Collapsed; - dynamoMessageBox.ScrollableBodyTextBlock.Visibility = Visibility.Visible; - } - dynamoMessageBox.ConfigureButtons(button); - dynamoMessageBox.ShowDialog(); - return dynamoMessageBox.CustomDialogResult; - } - /// /// Displays a dialog to the user and returns their choice as a MessageBoxResult. ///