private static ShortcutKeyBinding GetKeybindingFromMethodInfo(MethodInfo method) { try { var atr = method.GetCustomAttribute <OpyumShortcutMethodAttribute>(); if (atr == null) { return(null); } else { return(ShortcutKeyBinding.GenerateKeyBinding(atr.Command, atr.DefaultShortcut, atr.Action, atr.Description)); } } catch (Exception e) { throw e; } }
protected ListViewItem GenerateItem(ShortcutKeyBinding shortcut) { return(GenerateItem((IShortcutKeyBinding)shortcut)); }