public void ShowContextMenuAll(IEnumerable <string> suggestions, object range) { ClearMenu(); var model = Model; SpellcheckSuggestions(suggestions, range); AddEditorContext(); AddUndoRedo(); AddCopyPaste(); ContextMenu.Items.Add(new Separator()); var tabMenu = new TabContextMenu(); tabMenu.AddContextMenuItems(ContextMenu); Show(); }
public void ShowContextMenuAll(IEnumerable <string> suggestions, object range) { ClearMenu(); var model = Model; bool hasSuggestions = SpellcheckSuggestions(suggestions, range); AddEditorContext(); AddUndoRedo(); AddCopyPaste(); // if we dont' have suggestions show the tab context menu if (!hasSuggestions) { ContextMenu.Items.Add(new Separator()); var tabMenu = new TabContextMenu(); tabMenu.AddContextMenuItems(ContextMenu); } Show(); }