private void tabitemPhotos_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (lbxImages.SelectedIndex != -1)
     {
         md = new MediaDetails((Domain.Medium)lbxImages.SelectedItem);
         md.Owner = this;
         md.ShowDialog();
     }
 }
 private void btnSnapshot_Click(object sender, RoutedEventArgs e)
 {
     var md = new MediaDetails();
     md.Owner = this;
     md.ShowDialog();
 }
 public void ShowMediaDetails(bool isVideo)
 {
     md = new MediaDetails(isVideo);
     md.Owner = this;
     md.ShowDialog();
 }