Ejemplo n.º 1
0
 private OleCommandData(
     Guid commandGroup,
     uint commandId,
     uint commandExecOpt,
     IntPtr variantIn,
     IntPtr variantOut)
 {
     _commandId = new CommandId(commandGroup, commandId);
     _commandExecOpt = commandExecOpt;
     _variantIn = variantIn;
     _variantOut = variantOut;
 }
Ejemplo n.º 2
0
        public bool TryGetCommandData(CommandId id, out Command command, out ReadOnlyCollection<CommandKeyBinding> bindings)
        {
            CommandData commandData;
            if (!_commandMap.TryGetValue(id, out commandData))
            {
                command = null;
                bindings = null;
                return false;
            }

            command = commandData.Command;
            bindings = commandData.CommandKeyBindings;
            return true;
        }
Ejemplo n.º 3
0
 public bool TryGetCommand(CommandId id, out Command command)
 {
     ReadOnlyCollection<CommandKeyBinding> bindings;
     return TryGetCommandData(id, out command, out bindings);
 }
Ejemplo n.º 4
0
 public bool TryGetCommand(CommandId id, out Command command)
 {
     return _snapshot.TryGetCommand(id, out command);
 }
Ejemplo n.º 5
0
 public bool TryGetCommand(CommandId id, out Command command)
 {
     return _commandMap.TryGetValue(id, out command);
 }
 public bool TryGetCommandKeyBindings(CommandId id, out ReadOnlyCollection<CommandKeyBinding> bindings)
 {
     return _commandListSnapshot.TryGetCommandKeyBindings(id, out bindings);
 }
 public bool TryGetCommand(CommandId id, out EnvDTE.Command command)
 {
     return _commandListSnapshot.TryGetCommand(id, out command);
 }
Ejemplo n.º 8
0
 public CommandKeyBinding(CommandId commandId, string name, KeyBinding binding)
 {
     Id = commandId;
     Name = name;
     KeyBinding = binding;
 }