Esempio n. 1
0
        private void RemoveHighlighter(object obj)
        {
            IRemoveHighlighterService service = new RemoveHighlighterService();
            var highlighter = Highlighters.ElementAt(SelectedIndex);

            Debug.Assert(highlighter != null, "Should not be able to run this if no highlighter is selected!");

            service.Remove(highlighter);
        }
Esempio n. 2
0
        private void EditHighlighter(object obj)
        {
            IEditHighlighterService editService = new EditHighlighterService();
            var highlighter = Highlighters.ElementAt(SelectedIndex);

            if (highlighter != null)
            {
                editService.Edit(highlighter);
            }
        }