private void DisplayFileIconWithFileSize(string file, Actions caseDirectory) { BitmapSource icon = IconManager.GetLargeIcon(file, true, false); FilePreviewImage.Image = OsirtHelper.GetBitmap(icon); DisplayFileDetailsLabel(file, caseDirectory); }
private void DisplayFileIconWithFileSize(string file, Actions caseDirectory) { try { BitmapSource icon = IconManager.GetLargeIcon(file, true, false); FilePreviewImage.Image = OsirtHelper.GetBitmap(icon); DisplayFileDetailsLabel(file, caseDirectory); } catch { FilePreviewImage.Image = null; SetFileLabelText("Unable to read file"); } }
private void DisplayIcon() { BitmapSource icon = IconManager.GetLargeIcon(fileWithPath, false, false); uiFileIconPictureBox.Image = OsirtHelper.GetBitmap(icon); }