aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/IFileHandler.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-28 08:19:44 -0400
committerMichael <[email protected]>2017-06-28 08:19:44 -0400
commit00cd41ea928781ad760cff3d14bd78d60758679d (patch)
tree1ce9714d71831cef82ebfd161827a4db54d90405 /ShiftOS_TheReturn/IFileHandler.cs
parentcd2190f6caa16e8d909aa1d662996d690772a67f (diff)
downloadshiftos_thereturn-00cd41ea928781ad760cff3d14bd78d60758679d.tar.gz
shiftos_thereturn-00cd41ea928781ad760cff3d14bd78d60758679d.tar.bz2
shiftos_thereturn-00cd41ea928781ad760cff3d14bd78d60758679d.zip
Slight... very slight... fileskimmer mods
Diffstat (limited to 'ShiftOS_TheReturn/IFileHandler.cs')
-rw-r--r--ShiftOS_TheReturn/IFileHandler.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/IFileHandler.cs b/ShiftOS_TheReturn/IFileHandler.cs
new file mode 100644
index 0000000..3187c9a
--- /dev/null
+++ b/ShiftOS_TheReturn/IFileHandler.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ShiftOS.Engine
+{
+ public interface IFileHandler
+ {
+ void OpenFile(string file);
+ }
+
+ [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
+ public class FileHandlerAttribute : Attribute
+ {
+ public FileHandlerAttribute(string name, string extension, string iconid)
+ {
+ Name = name;
+ Extension = extension;
+ IconID = iconid;
+ }
+
+ public string Name { get; set; }
+ public string Extension { get; set; }
+ public string IconID { get; set; }
+ }
+}
+
+