aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/IFileHandler.cs
blob: 3187c9ab06dd272fc4e787e7850356b8a199ded1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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; }
    }
}