This commit is contained in:
jtsshieh 2017-08-03 07:57:11 -04:00
commit d51d7d3a8e
21 changed files with 526 additions and 4536 deletions

View file

@ -15,8 +15,7 @@ public static string ReadDataFile(string reqDirectory, bool returnYesIfProtected
{
string Val = "";
string directoryFileInfo = File.ReadAllText(Path.Combine(reqDirectory, "_data.info"));
FileSystemFolderInfo toRead = new FileSystemFolderInfo();
toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo);
FileSystemFolderInfo toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo);
if (returnYesIfProtected == true)
{

View file

@ -89,7 +89,7 @@ public static string ProfileSettingsDirectory
{
get
{
return Path.Combine(ProfileMyComputerDirectory, "Settings");
return Path.Combine(ProfileMyComputerDirectory, "Documents and Settings");
}
}
@ -97,7 +97,7 @@ public static string ProfileDocumentsDirectory
{
get
{
return Path.Combine(ProfileMyComputerDirectory, "Doc");
return Path.Combine(ProfileMyComputerDirectory, "My Documents");
}
}
@ -105,7 +105,7 @@ public static string ProfileProgramsDirectory
{
get
{
return Path.Combine(ProfileMyComputerDirectory, "Prog");
return Path.Combine(ProfileMyComputerDirectory, "Program Files");
}
}
@ -113,7 +113,7 @@ public static string ProfileWindowsDirectory
{
get
{
return Path.Combine(ProfileMyComputerDirectory, "Win");
return Path.Combine(ProfileMyComputerDirectory, "Windows");
}
}
@ -160,13 +160,13 @@ public static void CheckFiles()
SaveDirectoryInfo(ProfileDirectory, "folders", false, "My Computer", false);
SaveDirectoryInfo(ProfileFileSystemDirectory, "CDrive", false, "C:", true);
if (CurrentSave.CurrentOS == "95" || CurrentSave.CurrentOS == "98") SaveDirectoryInfo(ProfileMyComputerDirectory, "Doc", false, "My Documents", true);
if (CurrentSave.CurrentOS == "2000" || CurrentSave.CurrentOS == "ME") SaveDirectoryInfo(ProfileMyComputerDirectory, "Settings", false, "Documents and Settings", true);
SaveDirectoryInfo(ProfileMyComputerDirectory, "Prog", true, "Program Files", true);
if (CurrentSave.CurrentOS == "95" || CurrentSave.CurrentOS == "98") SaveDirectoryInfo(ProfileMyComputerDirectory, "My Documents", false, "My Documents", true);
if (CurrentSave.CurrentOS == "2000" || CurrentSave.CurrentOS == "ME") SaveDirectoryInfo(ProfileMyComputerDirectory, "Documents and Settings", false, "Documents and Settings", true);
SaveDirectoryInfo(ProfileMyComputerDirectory, "Program Files", true, "Program Files", true);
SaveDirectoryInfo(ProfileProgramsDirectory, "Accessories", false, "Accessories", true);
SaveDirectoryInfo(ProfileProgramsDirectory, "Internet Explorer", true, "Internet Explorer", true);
SaveDirectoryInfo(ProfileProgramsDirectory, "The Microsoft Network", true, "The Microsoft Network", true);
SaveDirectoryInfo(ProfileMyComputerDirectory, "Win", true, "Windows", true);
SaveDirectoryInfo(ProfileMyComputerDirectory, "Windows", true, "Windows", true);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Accessories"), "wordpad.exe", "wordpad");
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Internet Explorer"), "ie20.exe", "ie");
@ -186,9 +186,14 @@ public static void CreateWindowsDirectory()
SaveDirectoryInfo(ProfileWindowsDirectory, "Temp", true, "Temp", true);
SaveDirectoryInfo(ProfileWindowsDirectory, "Desktop", true, "Desktop", true);
CreateWindowsFile(ProfileWindowsDirectory, "calc.exe", "calc", 10, 59392);
CreateWindowsFile(ProfileWindowsDirectory, "explorer.exe", "explorer", 10, 204288);
CreateWindowsFile(ProfileWindowsDirectory, "notepad.exe", "notepad", 12, 34034);
CreateWindowsFile(ProfileWindowsDirectory, "c", "", 8, 515);
CreateWindowsFile(ProfileWindowsDirectory, "calc.exe", "calc", 13, 59392);
CreateWindowsFile(ProfileWindowsDirectory, "emm386.exe", "emm386", 10, 125495);
CreateWindowsFile(ProfileWindowsDirectory, "explorer.exe", "explorer", 0, 204288);
CreateWindowsFile(ProfileWindowsDirectory, "notepad.exe", "notepad", 14, 34034);
CreateWindowsFile(ProfileWindowsDirectory, "regedit.exe", "regedit", 15, 120320);
CreateWindowsFile(ProfileWindowsDirectory, "win.com", "", 10, 22679);
CreateWindowsFile(ProfileWindowsDirectory, "write.exe", "wordpad", 16, 5120);
}
public static void CreateWindowsFile(string filepath, string filename, string contents, int fileicon = 8, int bytes = 512)
@ -205,18 +210,22 @@ public static void CreateWindowsFile(string filepath, string filename, string co
public static void UpdateDirectoryInfo(string path, THFileInfo newfile)
{
newfile.DOSName = newfile.Name.ToUpper().Replace("*", "").Replace("+", "").Replace(":", "").Replace(";", "").Replace(" ", "");
string[] dos = newfile.DOSName.Split('.');
if (dos.Count() > 2)
if (newfile.DOSName.Contains("."))
{
List<string> dosb = dos.ToList();
dosb.RemoveRange(1, dos.Count() - 2);
dos = dosb.ToArray();
}
dos[1] = dos[1].Substring(0, 3);
if (dos[0].Length > 8) dos[0] = dos[0].Substring(0, 6) + "~1";
string[] dos = newfile.DOSName.Split('.');
newfile.DOSName = dos[0] + "." + dos[1];
if (dos.Count() > 2)
{
List<string> dosb = dos.ToList();
dosb.RemoveRange(1, dos.Count() - 2);
dos = dosb.ToArray();
}
dos[1] = dos[1].Substring(0, 3);
if (dos[0].Length > 8) dos[0] = dos[0].Substring(0, 6) + "~1";
newfile.DOSName = dos[0] + "." + dos[1];
}
else if (newfile.DOSName.Length > 8) newfile.DOSName = newfile.DOSName.Substring(0, 6) + "~1";
if (File.ReadAllText(Path.Combine(path, "_data.info")).Contains(newfile.DOSName)) return;
FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(path, "_data.info")));

View file

@ -51,7 +51,7 @@ private void InitializeComponent()
this.programContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.programContent.Location = new System.Drawing.Point(0, 0);
this.programContent.Name = "programContent";
this.programContent.Size = new System.Drawing.Size(413, 138);
this.programContent.Size = new System.Drawing.Size(413, 118);
this.programContent.TabIndex = 10;
this.programContent.Tag = "gnoreFormOnTaskbar";
//
@ -61,7 +61,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button1.Location = new System.Drawing.Point(150, 104);
this.button1.Location = new System.Drawing.Point(150, 84);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 23);
this.button1.TabIndex = 5;
@ -75,7 +75,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button3.Location = new System.Drawing.Point(323, 104);
this.button3.Location = new System.Drawing.Point(323, 84);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(80, 23);
this.button3.TabIndex = 4;
@ -99,7 +99,7 @@ private void InitializeComponent()
this.panel1.Controls.Add(this.infoText);
this.panel1.Location = new System.Drawing.Point(62, 16);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(341, 82);
this.panel1.Size = new System.Drawing.Size(341, 62);
this.panel1.TabIndex = 2;
//
// infoText
@ -107,7 +107,7 @@ private void InitializeComponent()
this.infoText.Dock = System.Windows.Forms.DockStyle.Fill;
this.infoText.Location = new System.Drawing.Point(0, 0);
this.infoText.Name = "infoText";
this.infoText.Size = new System.Drawing.Size(341, 82);
this.infoText.Size = new System.Drawing.Size(341, 62);
this.infoText.TabIndex = 0;
this.infoText.Text = "label1";
//
@ -117,7 +117,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button2.Location = new System.Drawing.Point(236, 104);
this.button2.Location = new System.Drawing.Point(236, 84);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(80, 23);
this.button2.TabIndex = 1;
@ -131,7 +131,7 @@ private void InitializeComponent()
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.programContent);
this.Name = "Infobox95";
this.Size = new System.Drawing.Size(413, 138);
this.Size = new System.Drawing.Size(413, 118);
this.programContent.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);

View file

@ -86,7 +86,6 @@ private void InitializeComponent()
this.downloaderTestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.installerTestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.storyTest1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.iE4TestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.SettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ControlPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.PrintersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -739,8 +738,7 @@ private void InitializeComponent()
this.DocumentsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.downloaderTestToolStripMenuItem,
this.installerTestToolStripMenuItem,
this.storyTest1ToolStripMenuItem,
this.iE4TestToolStripMenuItem});
this.storyTest1ToolStripMenuItem});
this.DocumentsToolStripMenuItem.Image = global::TimeHACK.Properties.Resources.WinClassicDocuments;
this.DocumentsToolStripMenuItem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.DocumentsToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
@ -775,15 +773,6 @@ private void InitializeComponent()
this.storyTest1ToolStripMenuItem.Text = "StoryTest1";
this.storyTest1ToolStripMenuItem.Click += new System.EventHandler(this.storyTest1ToolStripMenuItem_Click);
//
// iE4TestToolStripMenuItem
//
this.iE4TestToolStripMenuItem.BackColor = System.Drawing.SystemColors.Control;
this.iE4TestToolStripMenuItem.BackgroundImage = global::TimeHACK.Properties.Resources.sliversilver;
this.iE4TestToolStripMenuItem.Name = "iE4TestToolStripMenuItem";
this.iE4TestToolStripMenuItem.Size = new System.Drawing.Size(159, 22);
this.iE4TestToolStripMenuItem.Text = "IE4Test";
this.iE4TestToolStripMenuItem.Click += new System.EventHandler(this.iE4TestToolStripMenuItem_Click);
//
// SettingsToolStripMenuItem
//
this.SettingsToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
@ -1159,7 +1148,6 @@ private void InitializeComponent()
private System.Windows.Forms.Panel taskbarItems;
private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem;
internal System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem iE4TestToolStripMenuItem;
private System.Windows.Forms.Timer desktopupdate;
private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem;
internal System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;

View file

@ -480,13 +480,6 @@ private void FTPClientToolStripMenuItem_Click(object sender, EventArgs e)
startmenu.Hide();
}
private void iE4TestToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassic app = wm.StartWin95(new TempIE4(), "IE4", null, true, true);
app.BringToFront();
startmenu.Hide();
}
private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassic app = wm.StartWin95(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, false, false, resize: false);

View file

@ -19,7 +19,7 @@ public GoogleHome()
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
TempIE4.GoToPage("www.google.stanford.edu");
WinClassicIE4.GoToPage("www.google.stanford.edu");
}
}
}

View file

@ -19,7 +19,7 @@ public IE4Start()
private void linkLabel1_Click(object sender, EventArgs e)
{
TempIE4.GoToPage("www.google.com");
WinClassicIE4.GoToPage("www.google.com");
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,76 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TimeHACK.OS.Win95.Win95Apps.IE4Sites;
namespace TimeHACK.OS.Win95.Win95Apps
{
public partial class TempIE4 : UserControl
{
public static Panel browsingArea = new Panel();
public static ComboBox addressbar = new ComboBox();
public TempIE4()
{
InitializeComponent();
browsingArea = _browsingArea;
addressbar = _addressbar;
}
public static async void GoToPage(string url)
{
UserControl uc = new UserControl();
switch (url)
{
case "www.microsoft.com/windows/ie/default.htm":
uc = new IE4Start();
break;
case "www.google.com":
uc = new GoogleHome();
break;
case "www.google.stanford.edu":
uc = new GooglePrototype();
break;
default:
uc = new IE4NoPage();
break;
}
addressbar.Text = url;
uc.Dock = DockStyle.Fill;
await Task.Delay(new Random().Next(500, 1500));
browsingArea.Controls.Clear();
browsingArea.Controls.Add(uc);
}
private void TempIE4_Load(object sender, EventArgs e)
{
GoToPage("www.microsoft.com/windows/ie/default.htm");
GoButton.Paint += (s, args) => Engine.Paintbrush.PaintClassicBorders(s, args, 2);
}
private void GoButton_Click(object sender, EventArgs e)
{
GoToPage(addressbar.Text);
}
private void _addressbar_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
GoButton_Click(this, new EventArgs());
e.SuppressKeyPress = true;
browsingArea.Focus();
}
}
}
}

View file

@ -1,123 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="MenuStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View file

@ -12,6 +12,7 @@
using TimeHACK.Engine;
using Newtonsoft.Json;
using TimeHACK.Engine.Template;
using System.Diagnostics;
namespace TimeHACK.OS.Win95.Win95Apps
{
@ -52,20 +53,23 @@ void WinClassicWindowsExplorer_Load(object sender, EventArgs e)
mainView.LargeImageList = new ImageList();
mainView.LargeImageList.ImageSize = new Size(32, 32);
mainView.LargeImageList.Images.Add(Properties.Resources.Win95Computer);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicFolder);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicIE4);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicInbox);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicMSN);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicNetworking);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicOutlook);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicRecycle);
mainView.LargeImageList.Images.Add(Properties.Resources.Win95File);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicFolder);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicApp);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicSetup);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicNotepad);
mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicCalcBig);
mainView.LargeImageList.Images.AddRange(new Bitmap[] { Properties.Resources.Win95Computer, // 0
Properties.Resources.WinClassicFolder,
Properties.Resources.WinClassicIE4,
Properties.Resources.WinClassicInbox,
Properties.Resources.WinClassicMSN,
Properties.Resources.WinClassicNetworking, // 5
Properties.Resources.WinClassicOutlook,
Properties.Resources.WinClassicRecycle,
Properties.Resources.Win95File,
Properties.Resources.WinClassicFolder,
Properties.Resources.WinClassicApp, // 10
Properties.Resources.WinClassicSetup,
Properties.Resources.WinClassicNotepad,
Properties.Resources.WinClassicCalcBig,
Properties.Resources.WinClassicNotepadBig,
Properties.Resources.WinClassicRegedit, // 15
Properties.Resources.WinClassicWordpad });
program.BringToFront();
@ -157,37 +161,13 @@ void RefreshAll() {
}
else return;
}
switch (new FileInfo(str).Extension)
FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(CurrentDirectory, "_data.info")));
foreach(var item in fsfi.Files)
{
case ".exe":
string contents;
contents = File.ReadAllText(str);
switch (contents.ToLower())
{
case "calc":
itm.ImageIndex = 13;
break;
case "explorer":
itm.ImageIndex = 0;
break;
case "notepad":
itm.ImageIndex = 12;
break;
default:
itm.ImageIndex = 10;
break;
}
break;
case ".txt":
itm.ImageIndex = 12;
break;
default:
itm.ImageIndex = 8;
break;
Debug.Print(item.Name + " " + Path.GetFileName(str));
if (item.Name == Path.GetFileName(str)) { itm.ImageIndex = item.FileIcon; return; }
}
itm.ImageIndex = 8;
}
} catch (Exception ex) {
//wm.StartInfobox95("Exploring - C:", "Error with the file explorer \n" + ex.Message, Properties.Resources.Win95Info); add illegal operation dialog here later
@ -270,6 +250,15 @@ void OpenApplication(string appname, string path)
Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront();
Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing);
break;
case "notepad":
WinClassic appNP = wm.StartWin95(new WinClassicNotepad(), "Notepad", Properties.Resources.Win95IconNotepad_2, true, true);
Program.AddTaskbarItem(appNP, appNP.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad_2);
Program.nonimportantapps.Add(appNP);
Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront();
Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing);
break;
case "wordpad":
WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.WinClassicWordpad, true, true);
@ -315,8 +304,8 @@ void OpenApplication(string appname, string path)
}
string ReturnType(string extension) {
string returnVal = "";
fileType = 1;
string returnVal = "File";
fileType = 0;
switch (extension) {
case ".txt":
fileType = 1;
@ -608,7 +597,7 @@ void mainView_DoubleClick(object sender, EventArgs e)
{
if (mainView.FocusedItem.Tag == null)
{ // If it isn't a file
GoToDir(Path.Combine(CurrentDirectory, mainView.FocusedItem.ImageKey.ToString()));
GoToDir(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text));
}
else
{ // If it is a file
@ -709,19 +698,10 @@ private void Button1_Click(object sender, EventArgs e)
else OpenFile = true;
if (OpenFile == true)
{
if (txtSave.Text == "")
{
wm.StartInfobox95("Windows Explorer", "Please enter a filename", InfoboxType.Info, InfoboxButtons.OK);
}
if (txtSave.Text == "") wm.StartInfobox95("Windows Explorer", "Please enter a filename", InfoboxType.Info, InfoboxButtons.OK);
else
{
if (new FileInfo(Path.Combine(CurrentDirectory, txtSave.Text)).Extension == onlyViewExtension)
{
Program.WindowsExplorerReturnPath = Path.Combine(CurrentDirectory, txtSave.Text);
}
if (new FileInfo(Path.Combine(CurrentDirectory, txtSave.Text)).Extension == onlyViewExtension) Program.WindowsExplorerReturnPath = Path.Combine(CurrentDirectory, txtSave.Text);
FileDialogBoxManager.IsInOpenDialog = false;
FileDialogBoxManager.IsInSaveDialog = false;
@ -793,22 +773,13 @@ private void mainView_AfterLabelEdit(object sender, LabelEditEventArgs e)
{
string setText;
setText = e.Label;
if (setText == "")
{
wm.StartInfobox95("Windows Explorer", "Please enter a new directory name", InfoboxType.Info, InfoboxButtons.OK);
}
if (setText == "") wm.StartInfobox95("Windows Explorer", "Please enter a new directory name", InfoboxType.Info, InfoboxButtons.OK);
else
{
if (Directory.Exists(setText))
{
wm.StartInfobox95("Windows Explorer", "That directory already exists.", InfoboxType.Info, InfoboxButtons.OK);
}
if (Directory.Exists(setText)) wm.StartInfobox95("Windows Explorer", "That directory already exists.", InfoboxType.Info, InfoboxButtons.OK);
else
{
if (File.Exists(setText))
{
wm.StartInfobox95("Windows Explorer", "That file already exists.", InfoboxType.Info, InfoboxButtons.OK);
}
if (File.Exists(setText)) wm.StartInfobox95("Windows Explorer", "That file already exists.", InfoboxType.Info, InfoboxButtons.OK);
else
{
if (Directory.Exists(mainView.FocusedItem.ImageKey))
@ -1003,10 +974,7 @@ private void refresh_Tick(object sender, EventArgs e)
private void SellectAllCtrlAToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (ListViewItem item in mainView.Items)
{
item.Selected = true;
}
foreach (ListViewItem item in mainView.Items) item.Selected = true;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,236 +1,76 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TimeHACK.Engine;
using TimeHACK.Engine.Template;
using TimeHACK.OS.Win95.Win95Apps.IE4Sites;
namespace TimeHACK.OS.Win95.Win95Apps
{
public partial class WinClassicIE4 : UserControl
{
public List<string> browsinghistory = new List<string>();
public int historylocation = 0;
public HtmlDocument currentsite;
private Timer loadplz = new Timer();
public static Panel browsingArea = new Panel();
public static ComboBox addressbar = new ComboBox();
public WinClassicIE4()
{
InitializeComponent();
browsingArea = _browsingArea;
addressbar = _addressbar;
}
private void WinClassicIE4_Load(object sender, EventArgs e)
public static async void GoToPage(string url)
{
browsinghistory.Capacity = 99;
BringToFront();
hidePrograms();
browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome");
for (int i = 0; i < 99; i++) browsinghistory.Add(null);
webBrowser1.DocumentText = resources.GetString("ie4start_HTML");
webBrowser1.Show();
loadplz.Tick += new EventHandler(loadplz_Tick);
foreach (ToolStripMenuItem item in MenuStrip3.Items) item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
foreach (Control ctrl in Panel1.Controls) ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
}
UserControl uc = new UserControl();
private void hidePrograms()
{
googlemain.Hide();
googlealpha.Hide();
padamsmain.Hide();
hotmailmain.Hide();
padamsbackgrounds.Hide();
skindows95advertisment.Hide();
secretwebsite.Hide();
padamshidden.Hide();
email1.Hide();
email2.Hide();
email3.Hide();
hotmailpadams.Hide();
}
private void google_LinkClicked(object sender, HtmlElementEventArgs e)
{
goToSite("www.google.com", false);
}
private void padams_LinkClicked(object sender, HtmlElementEventArgs e)
{
goToSite("www.12padams.com", false);
}
private void googleprototypelink_LinkClicked(object sender, HtmlElementEventArgs e)
{
goToSite("www.google.stanford.edu", false);
}
private void googlebetalink_LinkClicked(object sender, HtmlElementEventArgs e)
{
goToSite("www.alpha.google.com", false);
}
private void Label20_Click(object sender, EventArgs e)
{
hidePrograms();
padamshidden.Dock = DockStyle.Fill;
padamshidden.Show();
}
private void Button12_Click(object sender, EventArgs e)
{
}
private void Button9_Click(object sender, EventArgs e)
{
goToSite("www.???.com", false);
}
private void ToolStripMenuItem21_Click(object sender, EventArgs e)
{
((Form)this.TopLevelControl).Close();
}
private void goToSite(string url, bool back)
{
webBrowser1.DocumentText = "";
switch (url)
{
case "www.microsoft.com/windows/ie/default.htm":
uc = new IE4Start();
break;
case "www.google.com":
hidePrograms();
webBrowser1.DocumentText = resources.GetString("google_HTML");
uc = new GoogleHome();
break;
case "www.google.stanford.edu":
hidePrograms();
webBrowser1.DocumentText = resources.GetString("prototype_HTML");
break;
case "www.alpha.google.com":
hidePrograms();
googlealpha.Dock = DockStyle.Fill;
googlealpha.Show();
break;
case "www.12padams.com":
hidePrograms();
Story.Hack1.StartObjective();
webBrowser1.DocumentText = resources.GetString("padams_HTML");
break;
case "www.microsoft.com/internetexplorer4/welcome":
hidePrograms();
webBrowser1.DocumentText = resources.GetString("ie4start_HTML");
break;
case "www.???.com":
hidePrograms();
secretwebsite.Dock = DockStyle.Fill;
secretwebsite.Show();
break;
case "www.12padams.com/???":
hidePrograms();
padamshidden.Dock = DockStyle.Fill;
padamshidden.Show();
uc = new GooglePrototype();
break;
default:
return;
}
if (!back)
{
if (historylocation >= 98) historylocation = 79;
for (int i = historylocation + 1; i < browsinghistory.Count; i++)
{
browsinghistory[i] = null;
}
int j = 0;
for (int i = 1; i < browsinghistory.Count; i++)
{
if (browsinghistory[i] != null && browsinghistory[i] != "") j++;
}
historylocation = j;
browsinghistory[historylocation + 1] = url;
historylocation++;
uc = new IE4NoPage();
break;
}
addressbar.Text = url;
currentsite = webBrowser1.Document;
uc.Dock = DockStyle.Fill;
await Task.Delay(new Random().Next(500, 1500));
browsingArea.Controls.Clear();
browsingArea.Controls.Add(uc);
}
private void BackButton_Click(object sender, EventArgs e)
private void TempIE4_Load(object sender, EventArgs e)
{
if (!(historylocation <= 0))
{
goToSite(browsinghistory[historylocation - 1], true);
historylocation--;
}
GoToPage("www.microsoft.com/windows/ie/default.htm");
GoButton.Paint += (s, args) => Engine.Paintbrush.PaintClassicBorders(s, args, 2);
}
private void ForwardButton_Click(object sender, EventArgs e)
{
if(browsinghistory[historylocation+1] != null) goToSite(browsinghistory[historylocation + 1], false);
}
private void HomeButton_Click(object sender, EventArgs e)
{
goToSite("www.microsoft.com/internetexplorer4/welcome", false);
}
private void WCDownloadButton_Click(object sender, HtmlElementEventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
WindowManager wm = new WindowManager();
wm.StartWin95(opendownload, "Downloader", null, false, true);
opendownload.appName.Text = "Downloading: Web Chat";
}
private void GoButton_Click(object sender, EventArgs e)
{
goToSite(addressbar.Text, false);
GoToPage(addressbar.Text);
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
private void _addressbar_KeyDown(object sender, KeyEventArgs e)
{
loadplz.Start();
}
private void loadplz_Tick(object sender, EventArgs e)
{
try
if (e.KeyCode == Keys.Enter)
{
Debug.Print(webBrowser1.Document.Title);
switch (webBrowser1.Document.Title)
{
case "IE4START":
webBrowser1.Document.GetElementById("google").Click += new HtmlElementEventHandler(google_LinkClicked);
webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(padams_LinkClicked);
break;
case "12PADAMS":
webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
webBrowser1.Document.GetElementById("ftp_b").Click += new HtmlElementEventHandler(FTPDownloadButton_Click);
if (!TitleScreen.frm95.HiddenPadamsFound) webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;";
break;
case "GOOGLE":
webBrowser1.Document.GetElementById("prototype").Click += new HtmlElementEventHandler(googleprototypelink_LinkClicked);
webBrowser1.Document.GetElementById("alpha").Click += new HtmlElementEventHandler(googlebetalink_LinkClicked);
break;
}
loadplz.Stop();
}
catch
{
GoButton_Click(this, new EventArgs());
e.SuppressKeyPress = true;
browsingArea.Focus();
}
}
private void FTPDownloadButton_Click(object sender, HtmlElementEventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
WindowManager wm = new WindowManager();
wm.StartWin95(opendownload, "Downloader", null, false, true);
opendownload.appName.Text = "Downloading: FTP Client";
}
//TODO: Add more websites
//TODO: Relabel Buttons And Things
}
}

View file

@ -117,300 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="TextBox1.Text" xml:space="preserve">
<value>Welcome To Internet Explorer 4.
Internet Explorer 4 makes browsing the web and exploring websites a pleasant experience.
Just type an address in the location bar above and then press go.
Instantly you will be taken to the webpage of your choosing.
Where do you want to go today?</value>
</data>
<data name="TextBox12.Text" xml:space="preserve">
<value>1998: Added Time Distortion software to 12padams website.
Software was hidden and only accessable after downloading hwcv.exe and applying it onto the 12padams website
Time Distortion software in extremely early stages and dangerous
Any Download of the time distortion software results in an instant alert to 12padams</value>
</data>
<data name="TextBox17.Text" xml:space="preserve">
<value>Hey 12padams... I was scanning your website and i found well i don't know.
Do you have some type of hidden software on it because i can't find to find the matching software the has the same code as i saw...
Whats the hidden software?</value>
</data>
<data name="TextBox10.Text" xml:space="preserve">
<value>12padams.com Data Log
1996: www.12padams.com created
1997:Lots Of software added to 12padams.com
1998: ###############
WARNING 1998 log file is encrypted and unreadable.
Rest of log stored on hotmail account...
Username: 12padams@hotmail.com
Password: projectdeath </value>
</data>
<data name="TextBox9.Text" xml:space="preserve">
<value>
WARNING: You have entered a secret site which was not meant to be accessed.
Warning do not tell 12padams about this website...
12padams is evil.
12padams is holding secrets which need to be found out.
I myself am banned from 12padams.com I almost found out the secret.
I don't know what the secret is but it seems that 12padams is hiding an additional piece of software on his site.
This software is hidden but can still be accessed.
The software is very powerful and is not a game, virus, or anything like that.
I don't know what it is but i do know its powerful.
You need to access this it.
I was scanning the code on the 12padams website and thats how i know about it.
Someone needs to find this software and use it.
I don't know how to access it from the 12padams site but all I know is that you have to click on something.
Its the thing you would least expect to click....
This site will be destroyed by 12padams very soon you need to find this secret before he removes it from his website.
FIND IT!!!
JUST CLICK EVERYWHERE ON THE 12PADAMS WEBSITE TILL YOU FIND THE SECRET!!!!!
written by "the hidden hacker"</value>
</data>
<data name="TextBox8.Text" xml:space="preserve">
<value>Skindows 95 is the best customization software in the world avalible for windows 95.
It allows the editing of the active captionbar to look pritty much however you like it.
Show the world your style. Buy Skindows 95 to use your computer to its full potential
If you Don't like this product you may recieve a full refund on day of purchous.
So Please enjoy Using this amzing software and show the world what your made of.</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="MenuStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing">
<metadata name="MenuStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ie4start" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\..\resources\ie4\ie4start.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="ie4start_HTML" xml:space="preserve">
<value>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;IE4START&lt;/title&gt;
&lt;style&gt;
body {
font-family: "Microsoft Sans Serif";
text-align: center;
}
h1 {
margin-top: 19px;
font-size: 14.25pt;
font-style: bold;
}
p {
font-size: 11.25pt;
}
h2 {
font-size: 12pt;
font-style: bold;
margin-top: 50px;
}
p.end {
font-size: 9.75pt;
}
a {
color: blue;
text-decoration: underline;
cursor: pointer;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Welcome to Internet Explorer 4&lt;/h1&gt;
&lt;p&gt;Welcome To Internet Explorer 4.&lt;br&gt;
Internet Explorer 4 makes browsing the web and exploring websites a pleasant experience.&lt;br&gt;
Just type an address in the location bar above and then press go.&lt;br&gt;
Instantly you will be taken to the webpage of your choosing.&lt;br&gt;
Where do you want to go today?&lt;/p&gt;
&lt;h2&gt;Here are some sites you may want to visit.&lt;/h2&gt;
&lt;a id="google"&gt;www.google.com&lt;/a&gt;&lt;br&gt;
&lt;a id="padams"&gt;www.12padams.com&lt;/a&gt;
&lt;p class="end"&gt;Where do you want to go today?&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</value>
</data>
<data name="padams" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\..\resources\ie4\padams.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="padams_HTML" xml:space="preserve">
<value>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;12PADAMS&lt;/title&gt;
&lt;style&gt;
body {
font-family: "Microsoft Sans Serif";
text-align: center;
}
h1 {
font-size: 9.75pt;
margin-top: 20px;
}
p {
font-size: 9.25pt;
margin-top: 0;
margin-bottom: 25px;
}
td div {
display: inline-block;
border: 1px solid black;
width: 215px;
height: 305px;
margin: 0 3px 0 3px;
text-align: center;
}
h1#copyright {
font-size: 9pt;
}
p.app {
margin-top: 30px;
}
p.app button {
float: right;
background-color: silver;
border-color: white black black white;
margin-right: 2px;
}
a {
font-size: 9.25pt;
color: blue;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Welcome to the Official 12padams website!!!&lt;/h1&gt;
&lt;p&gt;The best customizations for your windows 95 computer&lt;/p&gt;
&lt;table align="center"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class="software"&gt;
&lt;h1&gt;Games/Software&lt;/h1&gt;
&lt;p class="app" id="gtn"&gt;Guess the Number V1 &lt;button id="gtn_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
&lt;p class="app" id="wc"&gt;Web Chat 1998 &lt;button id="wc_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
&lt;p class="app" id="ftp"&gt;FTP Client &lt;button id="ftp_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
&lt;p class="app" id="distort"&gt;Time Distorter 0.1 &lt;button id="distort_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div class="customize"&gt;
&lt;h1&gt;Customizations&lt;/h1&gt;
&lt;p class="app" id="bg"&gt;Backgrounds &lt;button id="bg_b"&gt;View Backgrounds&lt;/button&gt;&lt;/p&gt;
&lt;p class="app" id="skn"&gt;Skindows 95 &lt;button id="skn_b"&gt;Info&lt;/button&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div class="viruses"&gt;
&lt;h1&gt;Example Viruses&lt;/h1&gt;
&lt;p class="app" id="sr"&gt;Start Runner 95 &lt;button id="sr_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
&lt;p class="app" id="eb"&gt;Error Blaster 95 &lt;button id="eb_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div class="sites"&gt;
&lt;h1&gt;Changelog&lt;/h1&gt;
&lt;p class="app"&gt;1996: 12padams.com created&lt;/p&gt;
&lt;p class="app"&gt;1997: Software added to the site&lt;/p&gt;
&lt;p class="app"&gt;1̧͙̙̦̪͙͇̜̥͍̟͍̹̰̝͖̫̩͘͡͡9̸̨͏̖̱̗̣̥͕̲͈̬̦9͠҉̶̢͔̹̖͇̫̩̻̪̬͔̥̟̺̼̺̟̫8̷̴̶̱̩͖̟̠̬̻̼̳̰̺͚͜͞:̧͟͏̰̣̠̹͍͔̼͕̲͇̪̥̗̞͚͇̖ͅ ͏̙͇̮̤̠͇̜͚͈͇͔̠̙͜͡ͅÀ͏̰̮̞̲̠̩̳͙͓͉̭̼̠͕̣͇̜͎ͅd̢̩̝̙̩̭̫͓̮͙͔̘̥͝d̻̻̪̙͖̬͈͟͝e͠҉̨̧҉̯̙̹̝̟̺̰͖̹̞̻̝̖̪͉͍͇̬#҉̵̻̜͇̻̹͈̀͟ ̨̡̘͓͔̜̭̫͖͔̰̦̘̀#̛͓̬̭̦̹̙̭͕̕#̧͢͠͏̖̙͚͉͇̣̜̖ͅ#̜̝͚͓̳̘̭̣̲̟̤̖͇̬̠̯̠̀͠ ̢͚̲̞̯͎͙̪̗̜̹͙͓͉͢ͅ#̡͙̻̫̝̪͙͚̺̝͓̘̬̬͙͔̀̕͠#̴҉͖̲̺̱͖͈̭̭ͅ#̸̸̷̼̫̪̖̻̻͈̭̬͓̘͓̦̟̻̪͇̞̕#̸̢̨̻̗̣̠̥̖̜̜̖̺͍̝̗͓̦̳̫#̛͡҉̭̝̙̟̘̩̬͖͎̘̞̭̖͔̪̼̠͢ͅ#̰̜̭̹̻̖̬̺͘͡#̛̬̣̳͔͔̘̟͜͢͟͡#̷̨̼̺̤̥̞́͢͡ ̢̞̬͙͍̬̪̪̰̰̰̙̮͙͚͕̩̟͇̕͜ͅ#̶͙̣̣̦͈͈̫̕͡#̸̡̥̹̮͇̱̱͍͜͜͢#̵̢̧̦͙̮̮͔͖̞̮͚͞#̧̗̤̱̪̜͓̠͖̞̰͍͢#̧̱̳̻̖̝͇͜͞#̛́҉͍̩̞̬͔̬̪̻̯̩#̷̴̨̙͚̹̘̜̗͔̺͖̳̕͜#̶̬͖͙̠̜̲̱̲͙̻̙̩̹̳̪̠̖́̕͟͞ͅ&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;h1 id="copyright"&gt;Copyright 1998 12padams&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;</value>
</data>
<data name="google_HTML" xml:space="preserve">
<value>&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8" /&gt;
&lt;title&gt;GOOGLE&lt;/title&gt;
&lt;style&gt;
a {
color: blue;
text-decoration: underline;
cursor: pointer;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Welcome to Google&lt;/h1&gt;
&lt;a id="prototype"&gt;Google Search Engine Prototype&lt;/a&gt;
&lt;br /&gt;
&lt;a id="alpha"&gt;Might-work-some-of-the-time-prototype that is much more up to date.&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;</value>
</data>
<data name="prototype_HTML" xml:space="preserve">
<value>&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8" /&gt;
&lt;title&gt;PROTOTYPE&lt;/title&gt;
&lt;style&gt;
a {
color: blue;
text-decoration: underline;
cursor: pointer;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body bgcolor="#FFFFFF"&gt;
&lt;center&gt;
&lt;img src="file:///C:/TimeHackData/Data/google.jpg" width="351" height="113"&gt;&lt;br&gt;
&lt;table border="0" cellspacing="0" cellpadding="5" width="70%"&gt;
&lt;tr&gt;
&lt;td bgcolor="#EEEEEE"&gt;
&lt;center&gt;
Search the web using Google!&lt;br&gt;
&lt;input type="text" name="query" value="" size="40"&gt;&lt;br&gt;
&lt;select name="num"&gt;
&lt;option value="10" selected&gt;10 results
&lt;option value="30"&gt;30 results
&lt;option value="100"&gt;100 results
&lt;/select&gt;
&lt;button id="search"&gt;Google Search&lt;/button&gt;
&lt;button id="lucky"&gt;I'm feeling lucky&lt;/button&gt; &lt;br&gt;
&lt;i&gt;Index contains ~25 million pages (soon to be much bigger)&lt;/i&gt;
&lt;/center&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;center&gt;
&lt;h2&gt;&lt;a&gt;About Google!&lt;/a&gt;&lt;/h2&gt;
&lt;a&gt;
Stanford
Search
&lt;/a&gt; &lt;a&gt;Linux Search&lt;/a&gt;
&lt;/center&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="LEFT"&gt;
&lt;td valign="CENTER" bgcolor="#EEEEEE" width="100%"&gt;
&lt;center&gt;Get Google! updates monthly!&lt;/center&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="LEFT"&gt;
&lt;td bgcolor="#EEEEEE"&gt;
&lt;center&gt;
&lt;input type="text" name="emailaddr" value="your e-mail" size="18"&gt;
&lt;input type="submit" name="SubmitAction" value="Subscribe"&gt;&lt;font size="-1"&gt;&amp;nbsp;&amp;nbsp;&lt;a&gt;Archive&lt;/a&gt;&lt;/font&gt;
&lt;/center&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;center&gt;&lt;font size="-1"&gt;Copyright &amp;copy;1997-8 Stanford University&lt;/font&gt;&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;</value>
</data>
</metadata>
</root>

View file

@ -476,13 +476,6 @@ private void FTPClientToolStripMenuItem_Click(object sender, EventArgs e)
startmenu.Hide();
}
private void iE4TestToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassic app = wm.StartWin95(new TempIE4(), "IE4", null, true, true);
app.BringToFront();
startmenu.Hide();
}
private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassic app = wm.StartWin95(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, false, false);

View file

@ -1291,6 +1291,16 @@ internal static System.Drawing.Bitmap WinClassicNotepad {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap WinClassicNotepadBig {
get {
object obj = ResourceManager.GetObject("WinClassicNotepadBig", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -1351,6 +1361,16 @@ internal static System.Drawing.Bitmap WinClassicRecycle {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap WinClassicRegedit {
get {
object obj = ResourceManager.GetObject("WinClassicRegedit", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -699,4 +699,10 @@
<data name="WinClassicCalcBig" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\WinClassicCalcBig.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="WinClassicNotepadBig" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\WinClassicNotepadBig.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="WinClassicRegedit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\WinClassicRegedit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

View file

@ -172,11 +172,11 @@
<Compile Include="OS\Win95\Win95Apps\MineSweeper\Square.cs" />
<Compile Include="OS\Win95\Win95Apps\Story\Hack1.cs" />
<Compile Include="OS\Win95\Win95Apps\Story\Hack2.cs" />
<Compile Include="OS\Win95\Win95Apps\TempIE4.cs">
<Compile Include="OS\Win95\Win95Apps\WinClassicIE4.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\TempIE4.Designer.cs">
<DependentUpon>TempIE4.cs</DependentUpon>
<Compile Include="OS\Win95\Win95Apps\WinClassicIE4.Designer.cs">
<DependentUpon>WinClassicIE4.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\Win95Installer.cs">
<SubType>UserControl</SubType>
@ -298,12 +298,6 @@
<Compile Include="GlobalPrograms\WinClassicDownloader.Designer.cs">
<DependentUpon>WinClassicDownloader.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\WinClassicIE4.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\WinClassicIE4.Designer.cs">
<DependentUpon>WinClassicIE4.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\WinClassicNotepad.cs">
<SubType>UserControl</SubType>
</Compile>
@ -372,8 +366,8 @@
<EmbeddedResource Include="OS\Win95\Win95Apps\MineSweeper\MineBestTimes.resx">
<DependentUpon>MineBestTimes.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\TempIE4.resx">
<DependentUpon>TempIE4.cs</DependentUpon>
<EmbeddedResource Include="OS\Win95\Win95Apps\WinClassicIE4.resx">
<DependentUpon>WinClassicIE4.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\Win95Installer.resx">
<DependentUpon>Win95Installer.cs</DependentUpon>
@ -444,9 +438,6 @@
<EmbeddedResource Include="GlobalPrograms\WinClassicDownloader.resx">
<DependentUpon>WinClassicDownloader.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\WinClassicIE4.resx">
<DependentUpon>WinClassicIE4.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\WinClassicNotepad.resx">
<DependentUpon>WinClassicNotepad.cs</DependentUpon>
</EmbeddedResource>
@ -631,11 +622,13 @@
<None Include="Resources\WinClassic\WinClassicNotepad.png" />
<None Include="Resources\WinClassic\WinClassicNew.png" />
<None Include="Resources\WinClassic\WinClassicOpenFolderSmall.png" />
<None Include="Resources\WinClassic\WinClassicNotepadBig.png" />
<Content Include="Resources\WinClassic\WinClassicOutlook.png" />
<None Include="Resources\WinClassic\WinClassicPaste.png" />
<Content Include="Resources\WinClassic\WinClassicProgramItem.png" />
<Content Include="Resources\WinClassic\WinClassicPrograms.png" />
<Content Include="Resources\WinClassic\WinClassicRecycle.png" />
<None Include="Resources\WinClassic\WinClassicRegedit.png" />
<Content Include="Resources\WinClassic\WinClassicRun.png" />
<Content Include="Resources\WinClassic\WinClassicSettings.png" />
<None Include="Resources\WinClassic\WinClassicSetup.png" />

View file

@ -56,10 +56,7 @@ public TitleScreen()
public void StartGame()
{
//TODO: You may want to handle story stuff to decide what OS to boot here.
if (Convert.ToInt32(VM_Width.Text) == 1337 && Convert.ToInt32(VM_Height.Text) == 1337)
{
leet();
}
if (Convert.ToInt32(VM_Width.Text) == 1337 && Convert.ToInt32(VM_Height.Text) == 1337) leet();
else
{
// Time to decide which OS to start up!
@ -107,16 +104,6 @@ public void StartGame()
}
}
void closeButton(object sender, MouseEventArgs e)
{
Close();
}
private void closebutton_Click(object sender, EventArgs e)
{
Close();
}
private void VM_WidthHeight_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) &&