public static void Run(ProjectItem item, CodeCleanerType command, CleanupOptions cleanupOptions)
        {
            if (!ActiveDocument.IsValid(item))
            {
                ErrorNotification.EmailError(Resources.PrivateModifierCleanUpFailed);
            }

            else
            {
                var instance = CodeCleanerFactory.Create(command, cleanupOptions);
                new CodeCleaner(instance, item).Run();
            }
        }
示例#2
0
        public void Invoke(CodeCleanerType cleanerType)
        {
            var instance = CodeCleanerFactory.Create(cleanerType);

            new CodeCleaner(instance, Item).Run();
        }