Files
AddinManager/AddInManager/FolderTooBigDialog.cs
2025-09-04 09:53:20 +08:00

25 lines
994 B
C#

using AddInManager.Properties;
using System;
using System.Text;
using System.Windows;
namespace AddInManager
{
public abstract class FolderTooBigDialog
{
public static MessageBoxResult Show(string folderPath, long sizeInMB)
{
var stringBuilder = new StringBuilder();
stringBuilder.AppendLine($"文件夹[{folderPath}]");
stringBuilder.AppendLine($"有{sizeInMB}MB大小");
stringBuilder.AppendLine("AddinManager尝试复制所有文件到临时文件夹");
stringBuilder.AppendLine("选择[Yes]复制所有文件到临时文件夹");
stringBuilder.AppendLine("选择[No]仅复制测试DLL文件到临时文件夹");
stringBuilder.AppendLine("选择[Cancel]取消操作");
var text = stringBuilder.ToString();
return MessageBox.Show(text, Resources.AppName, MessageBoxButton.YesNoCancel, MessageBoxImage.Information, MessageBoxResult.Yes);
}
}
}