Removing tiny icons

Prepping for improved folder views
Fixing warnings
This commit is contained in:
LarsBrubaker 2020-08-01 08:58:50 -07:00
parent 333ef89a9f
commit 0eec29e84d
43 changed files with 466 additions and 463 deletions

View file

@ -30,24 +30,12 @@ either expressed or implied, of the FreeBSD Project.
using System;
using System.IO;
using System.Threading.Tasks;
using MatterHackers.DataConverters3D;
namespace MatterHackers.MatterControl.Library
{
public class FileSystemFileItem : FileSystemItem, ILibraryAssetStream
{
public string FileName => System.IO.Path.GetFileName(this.Path);
public string ContentType => System.IO.Path.GetExtension(this.Path).ToLower().Trim('.');
public string AssetPath => this.Path;
/// <summary>
// Gets the size, in bytes, of the current file.
/// </summary>
public long FileSize { get; private set; }
public FileSystemFileItem(string path)
public FileSystemFileItem(string path)
: base(path)
{
var fileInfo = new FileInfo(path);
@ -57,6 +45,17 @@ namespace MatterHackers.MatterControl.Library
}
}
public string AssetPath => this.Path;
public string ContentType => System.IO.Path.GetExtension(this.Path).ToLower().Trim('.');
public string FileName => System.IO.Path.GetFileName(this.Path);
/// <summary>
/// Gets the size, in bytes, of the current file.
/// </summary>
public long FileSize { get; private set; }
public Task<StreamAndLength> GetStream(Action<double, string> reportProgress)
{
if (File.Exists(this.Path)
@ -75,4 +74,4 @@ namespace MatterHackers.MatterControl.Library
return Task.FromResult<StreamAndLength>(null);
}
}
}
}