aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-05-06 17:56:00 +0100
committerAlex-TIMEHACK <[email protected]>2017-05-06 17:56:00 +0100
commitb3d60f914a4619f637e1ee6aa3f80ab0cc7f4b51 (patch)
tree13d611505be833324e0582ba87ee67713d13be22 /TimeHACK.Main/OS
parent5a311ff05f13f480ce753c2f34a116443aba291a (diff)
downloadhistacom2-b3d60f914a4619f637e1ee6aa3f80ab0cc7f4b51.tar.gz
histacom2-b3d60f914a4619f637e1ee6aa3f80ab0cc7f4b51.tar.bz2
histacom2-b3d60f914a4619f637e1ee6aa3f80ab0cc7f4b51.zip
Added an Address Book! PLZ ACCEPT
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.Designer.cs5
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs14
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.resx2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.Designer.cs105
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.cs17
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.resx3
6 files changed, 142 insertions, 4 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.Designer.cs b/TimeHACK.Main/OS/Win95/Win95.Designer.cs
index 2e88c36..04374ba 100644
--- a/TimeHACK.Main/OS/Win95/Win95.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.Designer.cs
@@ -29,7 +29,7 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
- this.resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95));
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95));
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("My Computer", 0);
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("Network Neighborhood", 5);
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Inbox", 3);
@@ -238,7 +238,7 @@
this.startmenuitems.Name = "startmenuitems";
this.startmenuitems.Padding = new System.Windows.Forms.Padding(6, 2, 0, 0);
this.startmenuitems.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
- this.startmenuitems.Size = new System.Drawing.Size(141, 292);
+ this.startmenuitems.Size = new System.Drawing.Size(141, 311);
this.startmenuitems.TabIndex = 0;
this.startmenuitems.Text = "StartMenu";
//
@@ -439,6 +439,7 @@
this.AddressBookToolStripMenuItem.Name = "AddressBookToolStripMenuItem";
this.AddressBookToolStripMenuItem.Size = new System.Drawing.Size(181, 28);
this.AddressBookToolStripMenuItem.Text = "Address Book";
+ this.AddressBookToolStripMenuItem.Click += new System.EventHandler(this.AddressBookToolStripMenuItem_Click);
//
// CalculatorToolStripMenuItem
//
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index da8a550..eeaa9f2 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -310,6 +310,20 @@ namespace TimeHACK.OS.Win95
}
}
+ private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassicAddressBook ab = new WinClassicAddressBook();
+ WinClassic app = wm.startWin95(ab, "Address Book", Properties.Resources.Win95IconWordpad, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.Win95IconWordpad);
+
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
//TODO: Add Outlook Express 4
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95.resx b/TimeHACK.Main/OS/Win95/Win95.resx
index ae3e1b6..ac1b120 100644
--- a/TimeHACK.Main/OS/Win95/Win95.resx
+++ b/TimeHACK.Main/OS/Win95/Win95.resx
@@ -330,7 +330,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq
- ggAAAk1TRnQBSQFMAgEBDAEAATABAQEwAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
+ ggAAAk1TRnQBSQFMAgEBDAEAATgBAQE4AQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
AwABgAMAAQEBAAEgBwABAf8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AXAAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/x8AAf8DAAH/
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.Designer.cs
index 09f32df..4974cc2 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.Designer.cs
@@ -28,18 +28,121 @@
/// </summary>
private void InitializeComponent()
{
+ this.label1 = new System.Windows.Forms.Label();
+ this.topmenu = new System.Windows.Forms.MenuStrip();
+ this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.newContactToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.newGroupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.newFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.topmenu.SuspendLayout();
this.SuspendLayout();
//
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.Location = new System.Drawing.Point(114, 85);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(442, 39);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "YOY! This is my application";
+ //
+ // topmenu
+ //
+ this.topmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.fileToolStripMenuItem,
+ this.editToolStripMenuItem,
+ this.viewToolStripMenuItem,
+ this.toolsToolStripMenuItem,
+ this.helpToolStripMenuItem});
+ this.topmenu.Location = new System.Drawing.Point(0, 0);
+ this.topmenu.Name = "topmenu";
+ this.topmenu.Size = new System.Drawing.Size(666, 24);
+ this.topmenu.TabIndex = 1;
+ this.topmenu.Text = "menuStrip1";
+ //
+ // fileToolStripMenuItem
+ //
+ this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.newContactToolStripMenuItem,
+ this.newGroupToolStripMenuItem,
+ this.newFolderToolStripMenuItem});
+ this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
+ this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
+ this.fileToolStripMenuItem.Text = "File";
+ //
+ // editToolStripMenuItem
+ //
+ this.editToolStripMenuItem.Name = "editToolStripMenuItem";
+ this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
+ this.editToolStripMenuItem.Text = "Edit";
+ //
+ // viewToolStripMenuItem
+ //
+ this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
+ this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
+ this.viewToolStripMenuItem.Text = "View";
+ //
+ // toolsToolStripMenuItem
+ //
+ this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
+ this.toolsToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
+ this.toolsToolStripMenuItem.Text = "Tools";
+ //
+ // helpToolStripMenuItem
+ //
+ this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
+ this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
+ this.helpToolStripMenuItem.Text = "Help";
+ //
+ // newContactToolStripMenuItem
+ //
+ this.newContactToolStripMenuItem.Name = "newContactToolStripMenuItem";
+ this.newContactToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.newContactToolStripMenuItem.Text = "New contact...";
+ //
+ // newGroupToolStripMenuItem
+ //
+ this.newGroupToolStripMenuItem.Name = "newGroupToolStripMenuItem";
+ this.newGroupToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.newGroupToolStripMenuItem.Text = "New group...";
+ //
+ // newFolderToolStripMenuItem
+ //
+ this.newFolderToolStripMenuItem.Name = "newFolderToolStripMenuItem";
+ this.newFolderToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.newFolderToolStripMenuItem.Text = "New folder...";
+ //
// WinClassicAddressBook
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.topmenu);
this.Name = "WinClassicAddressBook";
- this.Size = new System.Drawing.Size(260, 264);
+ this.Size = new System.Drawing.Size(666, 425);
+ this.topmenu.ResumeLayout(false);
+ this.topmenu.PerformLayout();
this.ResumeLayout(false);
+ this.PerformLayout();
}
#endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.MenuStrip topmenu;
+ private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem newContactToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem newGroupToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem newFolderToolStripMenuItem;
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.cs
index 3934fa7..624267c 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.cs
@@ -15,6 +15,23 @@ namespace TimeHACK.OS.Win95.Win95Apps
public WinClassicAddressBook()
{
InitializeComponent();
+ foreach (ToolStripMenuItem item in topmenu.Items)
+ {
+ item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
+ item.BackColor = Color.Silver;
+ item.BackgroundImage = Properties.Resources.sliversilver;
+ item.BackgroundImageLayout = ImageLayout.Center;
+ item.DisplayStyle = ToolStripItemDisplayStyle.Text;
+ }
+
+ //Time to prepare to load all the fonts up for the combo boxes
+
+ //foreach (FontFamily font in System.Drawing.FontFamily.Families)
+ //{
+ // Added to the ComboBox here
+
+ //comboFont.Items.Add(font.Name);
+ //}
}
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.resx
index 1af7de1..6dff4e6 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.resx
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicAddressBook.resx
@@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
+ <metadata name="topmenu.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