diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-21 14:30:01 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-21 14:30:01 +0200 |
| commit | 36dcf50eec20835ab1955932e89f9c6ffc68acde (patch) | |
| tree | 3ca1331b626f04c8f19af24b65b7459b5f0660cb /Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs | |
| parent | 5f321b419501b2c836e8b03400fff2934be5f135 (diff) | |
| download | Tango-36dcf50eec20835ab1955932e89f9c6ffc68acde.tar.gz Tango-36dcf50eec20835ab1955932e89f9c6ffc68acde.zip | |
Working on Touch FileExplorer !
Diffstat (limited to 'Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs b/Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs new file mode 100644 index 000000000..e4ac8f5d4 --- /dev/null +++ b/Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Media.Imaging; + +namespace Tango.Explorer +{ + public class ExplorerFileItem : ExplorerItem + { + public static ExplorerFileItem LoadFromPath(String path) + { + ExplorerFileItem fileItem = new ExplorerFileItem(); + + var definition = ExplorerFileDefinition.GetByExtension(System.IO.Path.GetExtension(path)); + + fileItem.Path = path; + fileItem.Description = definition.Description; + fileItem.Name = System.IO.Path.GetFileName(path); + fileItem.Icon = definition.Icon; + + return fileItem; + } + } +} |
