Esempio n. 1
0
File: Project.cs Progetto: 00mjk/OGE
        private bool TryCreateTrackedAction(string typeString, out ITrackedAction action)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            action = null;

            foreach (Type type in assembly.GetTypes())
            {
                if (!typeof(ITrackedAction).IsAssignableFrom(type))
                {
                    continue;
                }
                if (type.ToString() != typeString)
                {
                    continue;
                }

                action = Activator.CreateInstance(type) as ITrackedAction;
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
File: Project.cs Progetto: 00mjk/OGE
 public void RemoveFileEdit(CacheFile targetFile, ITrackedAction editAction)
 {
 }