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); }
private void EditHighlighter(object obj) { IEditHighlighterService editService = new EditHighlighterService(); var highlighter = Highlighters.ElementAt(SelectedIndex); if (highlighter != null) { editService.Edit(highlighter); } }