コード例 #1
0
        private void DisplayFileIconWithFileSize(string file, Actions caseDirectory)
        {
            BitmapSource icon = IconManager.GetLargeIcon(file, true, false);

            FilePreviewImage.Image = OsirtHelper.GetBitmap(icon);
            DisplayFileDetailsLabel(file, caseDirectory);
        }
コード例 #2
0
 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");
     }
 }
コード例 #3
0
        private void DisplayIcon()
        {
            BitmapSource icon = IconManager.GetLargeIcon(fileWithPath, false, false);

            uiFileIconPictureBox.Image = OsirtHelper.GetBitmap(icon);
        }