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(); }
public BuildMenu(DTE2 dte, OleMenuCommandService mcs) { Mef.SatisfyImportsOnce(this); _dte = dte; _mcs = mcs; }