aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs
new file mode 100644
index 000000000..88f4fff05
--- /dev/null
+++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs
@@ -0,0 +1,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);
+ }
+ }
+}