public static void SetCommand(int index, string commandName, NppFuncItemDelegate functionPointer, ShortcutKey shortcut, bool checkOnInit) { FuncItem funcItem = new FuncItem(); funcItem._cmdID = index; funcItem._itemName = commandName; if (functionPointer != null) { funcItem._pFunc = functionPointer; } if (shortcut._key != 0) { funcItem._pShKey = shortcut; } funcItem._init2Check = checkOnInit; FuncItems.Add(funcItem); }
public static void SetCommand(int index, string commandName, NppFuncItemDelegate functionPointer, ShortcutKey shortcut) { SetCommand(index, commandName, functionPointer, shortcut, false); }