mirror of
https://github.com/ShrlAlgo/AddinManager.git
synced 2026-03-07 16:38:56 +00:00
添加项目文件。
This commit is contained in:
24
AddInManager/FolderTooBigDialog.cs
Normal file
24
AddInManager/FolderTooBigDialog.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user