Exemplo n.º 1
0
        private void FolderResults_SelectedIndexChanged(object sender, EventArgs e)
        {
            var fileName = folderResults.SelectedItem.ToString();
            var filePath = Path.Combine(RecentFolder, fileName);
            var fileType = Path.GetExtension(filePath);

            CacheConstants constants = new CacheConstants();
            var            fileSize  = constants.GetFileSize(new FileInfo(filePath).Length);

            fileSelectedName.Text = "File: " + fileName;
            fileSelectedType.Text = "File Type: " + fileType;
            fileSelectedSize.Text = "File Size: " + fileSize;

            loadFileButton.Enabled = fileName.EndsWith(".jar");

            OpenFileTooltip.SetToolTip(loadFileButton, "Open " + filePath);

            fileToOpen = filePath;
        }