public MinifyFileCommand(IContentType contentType, MinifyCommandId id)
            {
                Mef.SatisfyImportsOnce(this);
                ContentType = contentType;
                _sourceExtensions = FileExtensionRegistry.GetFileExtensionSet(contentType);

                Command = new OleMenuCommand((s, e) => Execute(), new CommandID(CommandGuids.guidMinifyCmdSet, (int)id));
                Command.BeforeQueryStatus += (s, e) => CheckVisible();
            }
Exemple #2
0
            public MinifyFileCommand(IContentType contentType, MinifyCommandId id)
            {
                Mef.SatisfyImportsOnce(this);
                ContentType       = contentType;
                _sourceExtensions = FileExtensionRegistry.GetFileExtensionSet(contentType);

                Command = new OleMenuCommand((s, e) => Execute(), new CommandID(CommandGuids.guidMinifyCmdSet, (int)id));
                Command.BeforeQueryStatus += (s, e) => CheckVisible();
            }