aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/OS
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-10-28 20:07:06 -0400
committerlempamo <[email protected]>2017-10-28 20:07:06 -0400
commit8501b2ff1483efc270216ec33fd93abccdb66253 (patch)
tree067bde695693d817f41d298f118c50f370582548 /Histacom2/OS
parentc0cb66b692ffc733f8b22686e9cae7b2e31f2080 (diff)
downloadhistacom2-8501b2ff1483efc270216ec33fd93abccdb66253.tar.gz
histacom2-8501b2ff1483efc270216ec33fd93abccdb66253.tar.bz2
histacom2-8501b2ff1483efc270216ec33fd93abccdb66253.zip
viruslabel made
Diffstat (limited to 'Histacom2/OS')
-rw-r--r--Histacom2/OS/WinXPBad/VirusLabel.Designer.cs70
-rw-r--r--Histacom2/OS/WinXPBad/VirusLabel.cs36
-rw-r--r--Histacom2/OS/WinXPBad/VirusLabel.resx123
-rw-r--r--Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.Designer.cs37
-rw-r--r--Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.cs20
-rw-r--r--Histacom2/OS/WinXPBad/WinXPBad.cs252
6 files changed, 294 insertions, 244 deletions
diff --git a/Histacom2/OS/WinXPBad/VirusLabel.Designer.cs b/Histacom2/OS/WinXPBad/VirusLabel.Designer.cs
new file mode 100644
index 0000000..1ddc93c
--- /dev/null
+++ b/Histacom2/OS/WinXPBad/VirusLabel.Designer.cs
@@ -0,0 +1,70 @@
+namespace Histacom2.OS.WinXPBad
+{
+ partial class VirusLabel
+ {
+ /// <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.components = new System.ComponentModel.Container();
+ this.label1 = new System.Windows.Forms.Label();
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.label1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.ForeColor = System.Drawing.Color.PaleGreen;
+ this.label1.Location = new System.Drawing.Point(0, 0);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(242, 19);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "Welcome to the end of the internet!!!";
+ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // timer1
+ //
+ this.timer1.Enabled = true;
+ this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
+ //
+ // VirusLabel
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.Black;
+ this.Controls.Add(this.label1);
+ this.Name = "VirusLabel";
+ this.Size = new System.Drawing.Size(242, 19);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Timer timer1;
+ }
+}
diff --git a/Histacom2/OS/WinXPBad/VirusLabel.cs b/Histacom2/OS/WinXPBad/VirusLabel.cs
new file mode 100644
index 0000000..e2af37a
--- /dev/null
+++ b/Histacom2/OS/WinXPBad/VirusLabel.cs
@@ -0,0 +1,36 @@
+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 Histacom2.OS.WinXPBad
+{
+ public partial class VirusLabel : UserControl
+ {
+ private bool white = true;
+
+ public VirusLabel()
+ {
+ InitializeComponent();
+ }
+
+ private void timer1_Tick(object sender, EventArgs e)
+ {
+ if (white)
+ {
+ label1.ForeColor = Color.Black;
+ white = false;
+ }
+ else
+ {
+ label1.ForeColor = Color.PaleGreen;
+ white = true;
+ }
+ }
+ }
+}
diff --git a/Histacom2/OS/WinXPBad/VirusLabel.resx b/Histacom2/OS/WinXPBad/VirusLabel.resx
new file mode 100644
index 0000000..1f666f2
--- /dev/null
+++ b/Histacom2/OS/WinXPBad/VirusLabel.resx
@@ -0,0 +1,123 @@
+<?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="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+</root> \ No newline at end of file
diff --git a/Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.Designer.cs b/Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.Designer.cs
new file mode 100644
index 0000000..8cfb2c1
--- /dev/null
+++ b/Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.Designer.cs
@@ -0,0 +1,37 @@
+namespace Histacom2.OS.WinXPBad
+{
+ partial class WinClassicTimeDistorter3Bad
+ {
+ /// <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()
+ {
+ components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ }
+
+ #endregion
+ }
+}
diff --git a/Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.cs b/Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.cs
new file mode 100644
index 0000000..27351a2
--- /dev/null
+++ b/Histacom2/OS/WinXPBad/WinClassicTimeDistorter3Bad.cs
@@ -0,0 +1,20 @@
+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 Histacom2.OS.WinXPBad
+{
+ public partial class WinClassicTimeDistorter3Bad : UserControl
+ {
+ public WinClassicTimeDistorter3Bad()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Histacom2/OS/WinXPBad/WinXPBad.cs b/Histacom2/OS/WinXPBad/WinXPBad.cs
index 302e9e9..64b3152 100644
--- a/Histacom2/OS/WinXPBad/WinXPBad.cs
+++ b/Histacom2/OS/WinXPBad/WinXPBad.cs
@@ -126,6 +126,7 @@ namespace Histacom2.OS.WinXPBad
// On Desktop MouseDown
private void desktop_mousedown(object sender, MouseEventArgs e)
{
+ startmenu.Hide();
if (e.Button == MouseButtons.Right)
{
// Check if an item is selected and if so show the Delete option
@@ -150,7 +151,6 @@ namespace Histacom2.OS.WinXPBad
else if (e.Button == MouseButtons.Left)
{
rightclickbackproperties.Hide();
- startmenu.Hide();
}
else if (e.Button == MouseButtons.Middle)
@@ -159,52 +159,6 @@ namespace Histacom2.OS.WinXPBad
}
}
- private void NotePadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicNotepad wp = new WinClassicNotepad();
- WinClassic app = wm.Init(wp, "Notepad", Properties.Resources.Win95IconNotepad, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
- private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicDownloader opendownload = new WinClassicDownloader();
- WinClassic app = wm.Init(opendownload, "Downloader", null, false, true);
- opendownload.appName.Text = "Downloading: Survive The Day";
-
- AddTaskBarItem(app, app.Tag.ToString(), "Downloader", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicInstaller openinstaller = new WinClassicInstaller("Testing");
- WinClassic app = wm.Init(openinstaller, "Installer", null, false, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Installer", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
- ie = wm.Init(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
- AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
- ie.BringToFront();
- ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
- startmenu.Hide();
- }
-
private void desktopicons_DoubleClick(object sender, EventArgs e)
{
Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
@@ -215,108 +169,23 @@ namespace Histacom2.OS.WinXPBad
objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y);
if (objListViewItem != null)
{
- if (objListViewItem.Text == "Internet Explorer")
+ if (objListViewItem.Text == "Time Distorter 0.3")
{
- if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
+ /*if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
ie = wm.Init(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
ie.BringToFront();
- ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
- startmenu.Hide();
- }
- else if (objListViewItem.Text == "My Computer")
- {
- WinClassic app = wm.Init(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
- app.BringToFront();
+ ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);*/
startmenu.Hide();
}
- else if (objListViewItem.Text == "Network Neighborhood")
- {
- // Alex's TODO here
-
- }
else if (objListViewItem.Text == "Recycle Bin")
{
- // Another thing you may need to digital poke Alex about doing.
}
- else if (objListViewItem.Text == "Set Up The Microsoft Network")
- {
- wm.StartInfobox95("Microsoft Network", "The Microsoft Network is already set up!", InfoboxType.Info, InfoboxButtons.OK);
- }
- else if (objListViewItem.Text == "Outlook Express")
- {
- //wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
- }
- else if (objListViewItem.Text == "Inbox")
- {
- //wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
- }
- else
- {
- // It is an actual file on the disk
- WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
-
- // If it is a directory
- if (Directory.Exists(objListViewItem.Tag.ToString()))
- {
- we.CurrentDirectory = objListViewItem.Tag.ToString();
-
- WinClassic app = wm.Init(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
- app.BringToFront();
- startmenu.Hide();
- }
- else we.OpenFile(objListViewItem.Tag.ToString()); // Just open the file...
- }
}
}
}
- private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassic app = wm.StartInfobox95("AShifter's Infobox", "This is the very first Histacom2 Infobox. It's really easy to call, too! \n Just use wm.startInfobox95(string title, string text, InfoboxType type, InfoboxButtons btns)!", InfoboxType.Info, InfoboxButtons.OK);
-
- app.BringToFront();
- startmenu.Hide();
- }
- private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (webchat != null) return;
- webchat = new WebChat1999();
- WinClassic app = wm.Init(webchat, "Web Chat 1999", null, true, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null);
-
- app.BringToFront();
- startmenu.Hide();
-
- app.FormClosing += (s, fe) => webchat = null;
- }
- public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
- {
- nonimportantapps.Remove((WinClassic)sender);
- }
- public void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
- {
- ie = null;
- }
-
- private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicWordPad wp = new WinClassicWordPad();
- WinClassic app = wm.Init(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
public void AddTaskBarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon)
{
taskbarItems = tb.AddTaskbarItem95(ApplicationID, ApplicationName, ApplicationIcon, (UserControl)new Win95TaskBarItem(), taskbarItems);
@@ -338,112 +207,13 @@ namespace Histacom2.OS.WinXPBad
foreach (Form form in tb.GetAllOpenApps())
{
// Calls that "AddToTaskbar" thing
- taskbarItems = tb.AddTaskbarItem95(form.Tag.ToString(), form.Text.ToString(), (Image)form.Icon.ToBitmap(), (UserControl)new Win95TaskBarItem(), taskbarItems);
+ taskbarItems = tb.AddTaskbarItem95(form.Tag.ToString(), form.Text.ToString(), form.Icon.ToBitmap(), new Win95TaskBarItem(), taskbarItems);
}
}
- private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e)
- {
-
- WinClassic app = wm.Init(new WinClassicAddressBook(), "Address Book", Properties.Resources.WinClassicAddressBook, true, true);
- Program.AddTaskbarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook);
-
- Program.nonimportantapps.Add(app);
- Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront();
- Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing);
-
- app.BringToFront();
- }
-
- private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- FileDialogBoxManager.IsInOpenDialog = false;
- FileDialogBoxManager.IsInSaveDialog = false;
- WinClassic app = wm.Init(new WinClassicWindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void storyTest1ToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Hack1.StartObjective();
- }
-
- private void temp_for_std(object sender, EventArgs e)
- {
- Win2K.Win2KApps.SurviveTheDay std = new Win2K.Win2KApps.SurviveTheDay();
- WinClassic app = wm.Init(std, "Survive The Day", null, false, false);
- AddTaskBarItem(app, app.Tag.ToString(), "Survive The Day", null);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void MSDOSPromptToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- WinClassicTerminal msdos = new WinClassicTerminal(false);
- WinClassic app = wm.Init(msdos, "MS-DOS Prompt", Properties.Resources.MSDOSPromptToolStripMenuItem1_Image, true, true, false);
-
- AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", Properties.Resources.MSDOSPromptToolStripMenuItem1_Image);
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void PropertiesToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- WinClassicThemePanel theme = new WinClassicThemePanel();
- WinClassic app = wm.Init(theme, "Themes", null, false, true, false);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Themes", null);
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (distort != null) return;
- distort = new WinClassicTimeDistorter2();
- WinClassic app = wm.Init(distort, "Time Distorter", null, false, false, false);
- AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null);
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void FTPClientToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassic app = wm.Init(new WinClassicFTPClient(), "FTP Client", null, true, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "FTP Client", null);
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassic app = wm.Init(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, false, false);
- AddTaskBarItem(app, app.Tag.ToString(), "Calculator", Properties.Resources.WinClassicCalc);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
private void desktopupdate_Tick(object sender, EventArgs e)
{
- desktopicons.Items[0].Position = new Point(this.Width - 50, this.Height - 80);
+ //desktopicons.Items[0].Position = new Point(this.Width - 50, this.Height - 80);
/*
DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0),
new System.Windows.Forms.ListViewItem("Network Neighborhood", 5),
@@ -506,16 +276,10 @@ namespace Histacom2.OS.WinXPBad
File.Delete(objListViewItem.Tag.ToString());
desktopupdate_Tick(null, null); // Update the desktop Icons
}
- else
- {
- wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
- }
+ else wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
}
}
- else
- {
- wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
- }
+ else wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
}
}
}