aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-22 11:41:27 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-22 11:41:27 +0100
commitbc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e (patch)
treea9a1755b81e425cb52f4719e7219d749fe885043 /TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs
parent64aba62685ea387b0637560b225d80cdc14629e9 (diff)
downloadhistacom2-bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e.tar.gz
histacom2-bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e.tar.bz2
histacom2-bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e.zip
Fully Working Web View Part 2
Diffstat (limited to 'TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs')
-rw-r--r--TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs28
1 files changed, 27 insertions, 1 deletions
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();
}
}
}