aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-15 05:25:07 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-15 05:25:07 +0300
commitef24521f35a9430c4a307c5225594376f7bf82bb (patch)
tree3f8f7479e7315767552f323fb79ca3e151d3d7f7 /Software/Visual_Studio/FSE/Tango.FSE.UI/FileAssociation/DefaultFileAssociationHandler.cs
parentef22b8bc38d2f82b9939c2b6ff6a47d36abbe25b (diff)
downloadTango-ef24521f35a9430c4a307c5225594376f7bf82bb.tar.gz
Tango-ef24521f35a9430c4a307c5225594376f7bf82bb.zip
Working on file association handlers..
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);
+ }
+ }
+}