static VSLI.IntellisenseKeyboardCommand? TryGetIntellisenseKeyboardCommand(HexEditorIds cmdId) {
				switch (cmdId) {
				case HexEditorIds.UP:				return VSLI.IntellisenseKeyboardCommand.Up;
				case HexEditorIds.DOWN:				return VSLI.IntellisenseKeyboardCommand.Down;
				case HexEditorIds.PAGEUP:			return VSLI.IntellisenseKeyboardCommand.PageUp;
				case HexEditorIds.PAGEDN:			return VSLI.IntellisenseKeyboardCommand.PageDown;
				case HexEditorIds.BOL:				return VSLI.IntellisenseKeyboardCommand.Home;
				case HexEditorIds.EOL:				return VSLI.IntellisenseKeyboardCommand.End;
				case HexEditorIds.TOPLINE:			return VSLI.IntellisenseKeyboardCommand.TopLine;
				case HexEditorIds.BOTTOMLINE:		return VSLI.IntellisenseKeyboardCommand.BottomLine;
				case HexEditorIds.CANCEL:			return VSLI.IntellisenseKeyboardCommand.Escape;
				case HexEditorIds.RETURN:			return VSLI.IntellisenseKeyboardCommand.Enter;
				case HexEditorIds.DECREASEFILTER:	return VSLI.IntellisenseKeyboardCommand.DecreaseFilterLevel;
				case HexEditorIds.INCREASEFILTER:	return VSLI.IntellisenseKeyboardCommand.IncreaseFilterLevel;
				default: return null;
				}
			}
コード例 #2
0
            static VSLI.IntellisenseKeyboardCommand?TryGetIntellisenseKeyboardCommand(HexEditorIds cmdId)
            {
                switch (cmdId)
                {
                case HexEditorIds.UP:                           return(VSLI.IntellisenseKeyboardCommand.Up);

                case HexEditorIds.DOWN:                         return(VSLI.IntellisenseKeyboardCommand.Down);

                case HexEditorIds.PAGEUP:                       return(VSLI.IntellisenseKeyboardCommand.PageUp);

                case HexEditorIds.PAGEDN:                       return(VSLI.IntellisenseKeyboardCommand.PageDown);

                case HexEditorIds.BOL:                          return(VSLI.IntellisenseKeyboardCommand.Home);

                case HexEditorIds.EOL:                          return(VSLI.IntellisenseKeyboardCommand.End);

                case HexEditorIds.TOPLINE:                      return(VSLI.IntellisenseKeyboardCommand.TopLine);

                case HexEditorIds.BOTTOMLINE:           return(VSLI.IntellisenseKeyboardCommand.BottomLine);

                case HexEditorIds.CANCEL:                       return(VSLI.IntellisenseKeyboardCommand.Escape);

                case HexEditorIds.RETURN:                       return(VSLI.IntellisenseKeyboardCommand.Enter);

                case HexEditorIds.DECREASEFILTER:       return(VSLI.IntellisenseKeyboardCommand.DecreaseFilterLevel);

                case HexEditorIds.INCREASEFILTER:       return(VSLI.IntellisenseKeyboardCommand.IncreaseFilterLevel);

                default: return(null);
                }
            }
コード例 #3
0
 protected HexViewCommandTargetMenuItemBase(HexEditorIds cmdId)
     : base(CommandConstants.HexEditorGroup, (int)cmdId)
 {
 }
コード例 #4
0
ファイル: Commands.cs プロジェクト: pashav15/pashav
 protected PasteHexViewCommandTargetMenuItemBase(HexEditorIds cmdId)
     : base(cmdId)
 {
 }
コード例 #5
0
 /// <summary>
 /// Converts <paramref name="id"/> to a <see cref="CommandInfo"/>
 /// </summary>
 /// <param name="id">ID</param>
 /// <param name="arguments">Arguments or null</param>
 /// <returns></returns>
 public static CommandInfo ToCommandInfo(this HexEditorIds id, object arguments) => new CommandInfo(CommandConstants.HexEditorGroup, (int)id, arguments);
コード例 #6
0
 /// <summary>
 /// Converts <paramref name="id"/> to a <see cref="CommandInfo"/>
 /// </summary>
 /// <param name="id">ID</param>
 /// <returns></returns>
 public static CommandInfo ToCommandInfo(this HexEditorIds id) => new CommandInfo(CommandConstants.HexEditorGroup, (int)id);