From 00cd41ea928781ad760cff3d14bd78d60758679d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 28 Jun 2017 08:19:44 -0400 Subject: Slight... very slight... fileskimmer mods --- ShiftOS_TheReturn/IFileHandler.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ShiftOS_TheReturn/IFileHandler.cs (limited to 'ShiftOS_TheReturn/IFileHandler.cs') 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; } + } +} + + -- cgit v1.2.3