You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/AI/Models/PendingFileModel.cs

20 lines
462 B
C#

using AI.Utils;
using Avalonia.Platform.Storage;
namespace AI.Models
{
public class PendingFileModel
{
public required IStorageFile StorageFile { get; set; }
public string Name => StorageFile?.Name ?? string.Empty;
public long Size { get; set; } // 单位: 字节
public string FormattedSize
{
get
{
return FileUnit.FormatFileSize(Size);
}
}
}
}