aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs
blob: 88f4fff05b4baab82129a320ca25c58c9bc674c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.FSE.Common.FileAssociation;

namespace Tango.FSE.UI.FileAssociation
{
    public class DefaultFileAssociationHandler : IFileAssociationProvider
    {
        private Dictionary<String, Action<FileAssociationPackage>> _handlers;

        public DefaultFileAssociationHandler()
        {
            _handlers = new Dictionary<string, Action<FileAssociationPackage>>();
        }

        public void RegisterFileAssociationHandler(string targetName, Action<FileAssociationPackage> handler)
        {
            _handlers.Add(targetName.ToLower(), handler);
        }
    }
}