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 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;
 }
Example #5
0
 public static AsyncCommandRangeToOleMenuCommandShim CreateRCmdSetCommand(int id, IAsyncCommandRange command) => new AsyncCommandRangeToOleMenuCommandShim(RGuidList.RCmdSetGuid, id, command);
 public static AsyncCommandRangeToOleMenuCommandShim CreateRCmdSetCommand(int id, IAsyncCommandRange command) => new AsyncCommandRangeToOleMenuCommandShim(RGuidList.RCmdSetGuid, id, command);