Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 protected ListViewItem GenerateItem(ShortcutKeyBinding shortcut)
 {
     return(GenerateItem((IShortcutKeyBinding)shortcut));
 }