/// <summary> /// Edit the currently selected classifier (defined by the /// <seealso cref="SelectedIndex">SelectedIndex</seealso> /// property). /// <para> /// Private method that implements the <c>ICommand</c> <seealso cref="Edit"> /// Edit</seealso> through a <c>DelegateCommand</c>. /// </para> /// </summary> /// <param name="obj">Delegate object data - unused.</param> private void EditClassifier(object obj) { var classifier = Classifiers.ElementAt(SelectedIndex); if (classifier != null) { editClassifyingService.Edit(classifier); } }
/// <summary> /// Removes the currently selected classifier (defined by the /// <seealso cref="SelectedIndex">SelectedIndex</seealso> /// property). /// <para> /// Private method that implements the <c>ICommand</c> <seealso cref="Remove"> /// Remove</seealso> through a <c>DelegateCommand</c>. /// </para> /// </summary> /// <param name="obj">Delegate object data - unused.</param> private void RemoveClassifier(object obj) { var classifier = Classifiers.ElementAt(SelectedIndex); removeClassifyingService.Remove(classifier); }