示例#1
0
 public string GetFormattedTotal()
 {
     if (_sizeLevel == SizeLevel.None)
     {
         _sizeLevel = SizeUtils.GetProperSizeLevel(DiskTotalSize - DiskFreeSize);
     }
     return($"Total: {SizeUtils.GetPrettySize(DiskTotalSize, _sizeLevel)}");
 }
示例#2
0
 /// <summary>
 /// get formatted size
 /// </summary>
 /// <returns></returns>
 public string GetFormatSize()
 {
     CheckSize();
     return(SizeUtils.GetPrettySize(Length));
 }