diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-07-22 11:41:27 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-07-22 11:41:27 +0100 |
| commit | bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e (patch) | |
| tree | a9a1755b81e425cb52f4719e7219d749fe885043 | |
| parent | 64aba62685ea387b0637560b225d80cdc14629e9 (diff) | |
| download | histacom2-bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e.tar.gz histacom2-bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e.tar.bz2 histacom2-bc6a8c1ada9230cab511aa5bcc9bdfbf43956e7e.zip | |
Fully Working Web View Part 2
| -rw-r--r-- | TimeHACK.Engine/SaveSystem.cs | 2 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.Designer.cs | 21 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs | 28 |
3 files changed, 39 insertions, 12 deletions
diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs index de34318..383a372 100644 --- a/TimeHACK.Engine/SaveSystem.cs +++ b/TimeHACK.Engine/SaveSystem.cs @@ -58,7 +58,7 @@ namespace TimeHACK.Engine { get { - return Path.Combine(ProfileFileSystemDirectory, "Computer"); + return Path.Combine(ProfileFileSystemDirectory, "CDrive"); } } diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.Designer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.Designer.cs index 131ed1f..a7e5bf1 100644 --- a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.Designer.cs +++ b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.Designer.cs @@ -36,6 +36,7 @@ this.txtInfoTitle = new System.Windows.Forms.Label(); this.pnlInfoContent = new System.Windows.Forms.Panel(); this.InfoDesc = new System.Windows.Forms.Panel(); + this.txtInfoDescSize = new System.Windows.Forms.Label(); this.txtInfoDescModified = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.txtInfoDescType = new System.Windows.Forms.Label(); @@ -75,7 +76,6 @@ this.HelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.HelpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.AboutWindows95ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.txtInfoDescSize = new System.Windows.Forms.Label(); this.program.SuspendLayout(); this.pnlInfo.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); @@ -139,6 +139,7 @@ this.pictureBox1.Location = new System.Drawing.Point(15, 18); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(30, 30); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 20; this.pictureBox1.TabStop = false; // @@ -180,6 +181,15 @@ this.InfoDesc.TabIndex = 22; this.InfoDesc.Visible = false; // + // txtInfoDescSize + // + this.txtInfoDescSize.AutoSize = true; + this.txtInfoDescSize.Location = new System.Drawing.Point(12, 81); + this.txtInfoDescSize.Name = "txtInfoDescSize"; + this.txtInfoDescSize.Size = new System.Drawing.Size(59, 13); + this.txtInfoDescSize.TabIndex = 0; + this.txtInfoDescSize.Text = "FILE_SIZE"; + // // txtInfoDescModified // this.txtInfoDescModified.AutoSize = true; @@ -518,15 +528,6 @@ this.AboutWindows95ToolStripMenuItem.Text = "About Windows 95"; this.AboutWindows95ToolStripMenuItem.Click += new System.EventHandler(this.AboutWindows95ToolStripMenuItem_Click); // - // txtInfoDescSize - // - this.txtInfoDescSize.AutoSize = true; - this.txtInfoDescSize.Location = new System.Drawing.Point(12, 81); - this.txtInfoDescSize.Name = "txtInfoDescSize"; - this.txtInfoDescSize.Size = new System.Drawing.Size(59, 13); - this.txtInfoDescSize.TabIndex = 0; - this.txtInfoDescSize.Text = "FILE_SIZE"; - // // WinClassicWindowsExplorer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 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(); } } } |
