Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }