private void DeleteButtonClick(object sender, RoutedEventArgs e)
 {
     var id = int.Parse(((Button)sender).CommandParameter.ToString());
     var dicomRepository = new DicomDataRepository(EHealthCareDesktopApp.Properties.Settings.Default.UniqueIdentifier);
     dicomRepository.DeleteDicom(EHealthCareDesktopApp.Properties.Settings.Default.PatientID, id);
     LoadDicom();
 }
 private void DeleteButtonClick(object sender, RoutedEventArgs e)
 {
     var id = int.Parse(((Button)sender).CommandParameter.ToString());
     var dicomRepository = new DicomDataRepository(UniqueIdentifier);
     dicomRepository.DeleteDicom(this.PatientId, id);
     LoadDicom();
 }