From bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 22 Jul 2017 11:41:27 +0100 Subject: Fully Working Web View Part 2 --- .../Win98/Win98Apps/WinClassicWindowsExplorer.cs | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs') diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs index af95868..ae64ff5 100644 --- a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs @@ -76,6 +76,29 @@ namespace TimeHACK.OS.Win95.Win95Apps // diskView.Items.Add("", 0) // End If //Next + + // Update the WebView + + if (Directory.Exists(currentDirectory)) + { + if (currentDirectory == SaveSystem.ProfileMyComputerDirectory) + { + pictureBox1.Image = Properties.Resources.Win95HardDiskIcon; + } else if (currentDirectory == SaveSystem.ProfileFileSystemDirectory) { + pictureBox1.Image = Properties.Resources.Win95Computer; + } else { + pictureBox1.Image = Properties.Resources.WinClassicFolder; + } + + } else { + // If it is the drive give it that icon + + + } + + string weblabel = ReadDataFile(currentDirectory, false); + + txtInfoTitle.Text = weblabel ?? new FileInfo(currentDirectory).Name; foreach (string str in Directory.GetDirectories(currentDirectory)) { string label = ReadDataFile(str, false); @@ -875,7 +898,8 @@ namespace TimeHACK.OS.Win95.Win95Apps txtInfoDescType.Text = ReturnType(fi.Extension).Split('\n')[0]; txtInfoDescModified.Text = fi.CreationTime.ToString(); - txtInfoDescSize.Text = $"{fi.Length} bytes."; + txtInfoDescSize.Show(); + txtInfoDescSize.Text = $"Size: {fi.Length} bytes."; } } else if (Directory.Exists(Path.Combine(currentDirectory, mainView.FocusedItem.Text))) { @@ -887,6 +911,8 @@ namespace TimeHACK.OS.Win95.Win95Apps txtInfoDescName.Text = mainView.FocusedItem.Text; txtInfoDescType.Text = "File Folder"; txtInfoDescModified.Text = fi.CreationTime.ToString(); + + txtInfoDescSize.Hide(); } } } -- cgit v1.2.3