mirror of
https://github.com/ShrlAlgo/AddinManager.git
synced 2026-03-07 16:38:56 +00:00
25 lines
994 B
C#
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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|