public AsyncCommandRangeToOleMenuCommandShim(Guid group, int id, IAsyncCommandRange commandRange) : base(group, id) { if (commandRange == null) { throw new ArgumentNullException(nameof(commandRange)); } _commandRange = commandRange; _maxCount = commandRange.MaxCount; }
public static AsyncCommandRangeToOleMenuCommandShim CreateCommand(Guid group, int id, IAsyncCommandRange command) => new AsyncCommandRangeToOleMenuCommandShim(group, id, command);
public AsyncCommandRangeToOleMenuCommandShim(Guid group, int id, IAsyncCommandRange commandRange) : base(group, id) { Check.ArgumentNull(nameof(commandRange), commandRange); _commandRange = commandRange; _maxCount = commandRange.MaxCount; }
public static AsyncCommandRangeToOleMenuCommandShim CreateRCmdSetCommand(int id, IAsyncCommandRange command) => new AsyncCommandRangeToOleMenuCommandShim(RGuidList.RCmdSetGuid, id, command);