aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-23 16:22:32 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-23 16:22:32 +0100
commit110089e0d7fcbc454dc55c0619ec4ccebc1a7e85 (patch)
tree96f88795cdc73417b49abe1f77bce94b6731005b /TimeHACK.Main
parentc3ad5be7444664be6a1f7ba023067eb32cb5d231 (diff)
downloadhistacom2-110089e0d7fcbc454dc55c0619ec4ccebc1a7e85.tar.gz
histacom2-110089e0d7fcbc454dc55c0619ec4ccebc1a7e85.tar.bz2
histacom2-110089e0d7fcbc454dc55c0619ec4ccebc1a7e85.zip
Realistic Desktop is finished!
Diffstat (limited to 'TimeHACK.Main')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.Designer.cs4
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs40
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs20
-rw-r--r--TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs71
-rw-r--r--TimeHACK.Main/OS/Win95/Win95SaveAs.cs20
-rw-r--r--TimeHACK.Main/OS/Win95/Win95SaveAs.resx120
-rw-r--r--TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs4
-rw-r--r--TimeHACK.Main/TimeHACK.Main.csproj9
8 files changed, 49 insertions, 239 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.Designer.cs b/TimeHACK.Main/OS/Win95/Win95.Designer.cs
index ffaad19..8c991c7 100644
--- a/TimeHACK.Main/OS/Win95/Win95.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.Designer.cs
@@ -969,7 +969,7 @@ namespace TimeHACK.OS.Win95
this.desktopicons.Size = new System.Drawing.Size(640, 480);
this.desktopicons.TabIndex = 6;
this.desktopicons.UseCompatibleStateImageBehavior = false;
- this.desktopicons.DoubleClick += new System.EventHandler(this.desktopicons_Click);
+ this.desktopicons.DoubleClick += new System.EventHandler(this.desktopicons_DoubleClick);
this.desktopicons.MouseDown += new System.Windows.Forms.MouseEventHandler(this.desktop_mousedown);
//
// rightclickbackproperties
@@ -1257,7 +1257,7 @@ namespace TimeHACK.OS.Win95
private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem;
private System.Windows.Forms.Panel taskbarItems;
private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem;
+ internal System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem iE4TestToolStripMenuItem;
private System.Windows.Forms.Timer desktopupdate;
}
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 7a2e9e1..d2f7507 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -259,7 +259,7 @@ namespace TimeHACK.OS.Win95
startmenu.Hide();
}
- private void desktopicons_Click(object sender, EventArgs e)
+ private void desktopicons_DoubleClick(object sender, EventArgs e)
{
Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
ListViewItem objListViewItem;
@@ -278,23 +278,37 @@ namespace TimeHACK.OS.Win95
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
}
- else if (objListViewItem.Text == "Web Chat Setup")
+ else if (objListViewItem.Text == "My Computer")
{
- Win95Installer inst = new Win95Installer("Web Chat 1998");
- inst.InstallCompleted += (sendr, args) => WebChatToolStripMenuItem.Visible = true;
- WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
+ WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
app.BringToFront();
startmenu.Hide();
}
- else if (objListViewItem.Text == "FTP Client Setup")
+ else
{
- Win95Installer inst = new Win95Installer("FTP Client");
- inst.InstallCompleted += (sendr, args) => FTPClientToolStripMenuItem.Visible = true;
- WinClassic app = wm.StartWin95(inst, "FTP Client Setup", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "FTP Client Setup", null);
- app.BringToFront();
- startmenu.Hide();
+ // It is an actual file on the disk
+
+ Win95WindowsExplorer we = new Win95WindowsExplorer();
+
+ // If it is a directory
+
+ if (Directory.Exists(objListViewItem.Tag.ToString()))
+ {
+ we.CurrentDirectory = objListViewItem.Tag.ToString();
+
+ WinClassic app = wm.StartWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
+ app.BringToFront();
+ startmenu.Hide();
+ }
+ else
+ {
+ // Just open the file...
+
+ we.OpenFile(objListViewItem.Tag.ToString());
+ }
+
}
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs
index 91a44cc..4777dae 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs
@@ -22,7 +22,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
public string onlyViewExtension = "";
string ToReplaceWith = ProfileDirectory;
- string CurrentDirectory = ProfileMyComputerDirectory;
+ public string CurrentDirectory = ProfileMyComputerDirectory;
string OldLabelText;
string CurrentCopyFile;
@@ -200,7 +200,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray));
}
- void OpenFile(string fileDir)
+ public void OpenFile(string fileDir)
{
try
{
@@ -258,6 +258,22 @@ namespace TimeHACK.OS.Win95.Win95Apps
TitleScreen.frm95.ie.FormClosing += new FormClosingEventHandler(TitleScreen.frm95.InternetExplorer4_Closing);
break;
+ case "web chat setup":
+ Win95Installer inst = new Win95Installer("Web Chat 1998");
+ inst.InstallCompleted += (sendr, args) => TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true;
+ WinClassic appInstaller = wm.StartWin95(inst, "Web Chat Setup", null, true, true);
+ Program.AddTaskbarItem(appInstaller, appInstaller.Tag.ToString(), "Web Chat Setup", null);
+ appInstaller.BringToFront();
+
+ break;
+ case "ftp client setup":
+ Win95Installer instFtp = new Win95Installer("FTP Client");
+ instFtp.InstallCompleted += (sendr, args) => TitleScreen.frm95.FTPClientToolStripMenuItem.Visible = true;
+ WinClassic appFtp = wm.StartWin95(instFtp, "FTP Client Setup", null, true, true);
+ Program.AddTaskbarItem(appFtp, appFtp.Tag.ToString(), "FTP Client Setup", null);
+ appFtp.BringToFront();
+
+ break;
case "iebrokeninstaller":
wm.StartInfobox95("Internet Explorer Installation", "Installation Failed: The INF file was not found", Properties.Resources.Win95Error);
diff --git a/TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs b/TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs
deleted file mode 100644
index 980ddf3..0000000
--- a/TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-namespace TimeHACK.OS.Win95
-{
- partial class Win95SaveAs
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.label1 = new System.Windows.Forms.Label();
- this.listView1 = new System.Windows.Forms.ListView();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(13, 10);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(47, 13);
- this.label1.TabIndex = 0;
- this.label1.Text = "Save In:";
- //
- // listView1
- //
- this.listView1.Location = new System.Drawing.Point(16, 35);
- this.listView1.Name = "listView1";
- this.listView1.Size = new System.Drawing.Size(312, 110);
- this.listView1.TabIndex = 1;
- this.listView1.UseCompatibleStateImageBehavior = false;
- this.listView1.View = System.Windows.Forms.View.List;
- //
- // Win95SaveAs
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.listView1);
- this.Controls.Add(this.label1);
- this.Name = "Win95SaveAs";
- this.Size = new System.Drawing.Size(348, 193);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.ListView listView1;
- }
-}
diff --git a/TimeHACK.Main/OS/Win95/Win95SaveAs.cs b/TimeHACK.Main/OS/Win95/Win95SaveAs.cs
deleted file mode 100644
index 96469e4..0000000
--- a/TimeHACK.Main/OS/Win95/Win95SaveAs.cs
+++ /dev/null
@@ -1,20 +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;
-
-namespace TimeHACK.OS.Win95
-{
- public partial class Win95SaveAs : UserControl
- {
- public Win95SaveAs()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/TimeHACK.Main/OS/Win95/Win95SaveAs.resx b/TimeHACK.Main/OS/Win95/Win95SaveAs.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/TimeHACK.Main/OS/Win95/Win95SaveAs.resx
+++ /dev/null
@@ -1,120 +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>
-</root> \ No newline at end of file
diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs
index 245d188..ef28bca 100644
--- a/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs
+++ b/TimeHACK.Main/OS/Win98/Win98Apps/WinClassicWindowsExplorer.cs
@@ -22,7 +22,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
public string onlyViewExtension = "";
string ToReplaceWith = ProfileDirectory;
- string CurrentDirectory = ProfileMyComputerDirectory;
+ public string CurrentDirectory = ProfileMyComputerDirectory;
string OldLabelText;
string CurrentCopyFile;
int fileType = 6;
@@ -236,7 +236,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray));
}
- void OpenFile(string fileDir)
+ public void OpenFile(string fileDir)
{
try
{
diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj
index b9da71d..341090f 100644
--- a/TimeHACK.Main/TimeHACK.Main.csproj
+++ b/TimeHACK.Main/TimeHACK.Main.csproj
@@ -212,12 +212,6 @@
<Compile Include="OS\Win95\Win95Apps\Win95WindowsExplorer.Designer.cs">
<DependentUpon>Win95WindowsExplorer.cs</DependentUpon>
</Compile>
- <Compile Include="OS\Win95\Win95SaveAs.cs">
- <SubType>UserControl</SubType>
- </Compile>
- <Compile Include="OS\Win95\Win95SaveAs.Designer.cs">
- <DependentUpon>Win95SaveAs.cs</DependentUpon>
- </Compile>
<Compile Include="OS\Win95\Win95Apps\WinClassicTimeDistorter.cs">
<SubType>UserControl</SubType>
</Compile>
@@ -383,9 +377,6 @@
<DependentUpon>Win95WindowsExplorer.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
- <EmbeddedResource Include="OS\Win95\Win95SaveAs.resx">
- <DependentUpon>Win95SaveAs.cs</DependentUpon>
- </EmbeddedResource>
<EmbeddedResource Include="OS\Win98\Win98.resx">
<DependentUpon>Win98.cs</DependentUpon>
<SubType>Designer</SubType>