source: trunk/CrypPlugins/WorkspaceManager/View/Converter/DragDropDataObjectToPluginConverter.cs @ 1991

Last change on this file since 1991 was 1526, checked in by matkovic, 12 years ago

-added Model use in View
-added Model method
-some misc changes

File size: 873 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Cryptool.Core;
6using Cryptool.PluginBase;
7using System.Reflection;
8
9namespace WorkspaceManager.View.Converter
10{
11    class DragDropDataObjectToPluginConverter
12    {
13        public static PluginManager PluginManager { get; set; }
14
15        private static Type type;
16
17        public static Type CreatePluginInstance(string assemblyQualifiedName, string typeVar)
18        {
19            if (PluginManager != null && assemblyQualifiedName != null && typeVar != null)
20            {
21                AssemblyName assName = new AssemblyName(assemblyQualifiedName);
22                type = PluginManager.LoadType(assName.Name, typeVar);
23
24                if (type != null)
25                    return type;
26            }
27            return null;
28        }
29    }
30}
Note: See TracBrowser for help on using the repository browser.