예제 #1
0
        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();
        }