/// <summary> /// This function removes the image tag from ImageSource. This is /// used as the postive action when confirming an image removal. /// </summary> /// <param name="sender">The object which triggered the event</param> /// <param name="e">The event details</param> public void removeTag(object sender, EventArgs e) { //delete the tag if (tagList.Count > 0 && dataGridTags.SelectedCells.Count > 0) { tagOrganizer.removeTag(sourceImage.name, (dataGridTags.SelectedCells[1].Value as Tag)); } //refresh the list of tags refreshTagList(); }