/// <summary> /// Handles the MouseLeftButtonDown event of the ImgTag control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.Input.MouseButtonEventArgs"/> instance containing the event data.</param> private void ImgTag_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { RedrawArea(); TagPhotos tagingWindow = new TagPhotos(); tagingWindow.Refresh(GetSelectedPhoto()); tagingWindow.Show(); if (tagingWindow.CloseWindow) { GetAndShowImagesFromDatabase(Actions.GetAllPhotos()); } tagingWindow = null; }