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(); } }
public void Invoke(CodeCleanerType cleanerType) { var instance = CodeCleanerFactory.Create(cleanerType); new CodeCleaner(instance, Item).Run(); }