Exemplo n.º 1
0
Arquivo: Project.cs Projeto: 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);
        }
Exemplo n.º 2
0
Arquivo: Project.cs Projeto: 00mjk/OGE
 public void RemoveFileEdit(CacheFile targetFile, ITrackedAction editAction)
 {
 }