public bool TryGetMenuItem(MenuItemKey key, out ToolStripItem item)
 {
     return(_itemsIndex.Value.TryGetValue(key, out item));
 }
 protected TranslationString GetTooltip(MenuItemKey key)
 {
     return(Strings.Tooltips[key]);
 }
 public static ToolStripItemWithKey WithKey(this ToolStripItem item, MenuItemKey key)
 {
     return(new ToolStripItemWithKey(key, item));
 }
Exemple #4
0
 public ToolStripItemWithKey(MenuItemKey key, ToolStripItem item)
 {
     Key  = key;
     Item = item;
 }