aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-21 14:30:01 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-21 14:30:01 +0200
commit36dcf50eec20835ab1955932e89f9c6ffc68acde (patch)
tree3ca1331b626f04c8f19af24b65b7459b5f0660cb /Software/Visual_Studio/Tango.Explorer/ExplorerFileItem.cs
parent5f321b419501b2c836e8b03400fff2934be5f135 (diff)
downloadTango-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.cs27
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;
+ }
+ }
+}