コード例 #1
0
ファイル: CommandShortcut.cs プロジェクト: manojdjoshi/dnSpy
		public CommandShortcut(KeyShortcut shortcut, CommandInfo cmd) {
			KeyShortcut = shortcut;
			CommandInfo = cmd;
		}
コード例 #2
0
		public ProviderAndCommand(ICommandInfoProvider provider, CommandInfo cmd) {
			if (provider == null)
				throw new ArgumentNullException(nameof(provider));
			Provider = provider;
			Command = cmd;
		}
コード例 #3
0
ファイル: CommandShortcut.cs プロジェクト: manojdjoshi/dnSpy
		public static CommandShortcut Create(KeyInput key1, KeyInput key2, CommandInfo cmd) => new CommandShortcut(new KeyShortcut(key1, key2), cmd);
コード例 #4
0
ファイル: CommandShortcut.cs プロジェクト: manojdjoshi/dnSpy
		public static CommandShortcut CtrlShiftAlt(Key key, CommandInfo cmd) => new CommandShortcut(new KeyShortcut(key, ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Alt), cmd);
コード例 #5
0
ファイル: CommandShortcut.cs プロジェクト: manojdjoshi/dnSpy
		public static CommandShortcut Alt(Key key, CommandInfo cmd) => new CommandShortcut(new KeyShortcut(key, ModifierKeys.Alt), cmd);
コード例 #6
0
ファイル: CommandShortcut.cs プロジェクト: manojdjoshi/dnSpy
		public static CommandShortcut Control(Key key, CommandInfo cmd) => new CommandShortcut(new KeyShortcut(key, ModifierKeys.Control), cmd);
コード例 #7
0
ファイル: CommandShortcut.cs プロジェクト: manojdjoshi/dnSpy
		public static CommandShortcut Create(Key key, CommandInfo cmd) => new CommandShortcut(new KeyShortcut(key, ModifierKeys.None), cmd);