From 4db6df01a8ee3f40c13b67174c6acc498a060951 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 22 Jul 2017 09:07:44 +0100 Subject: There is no Address Book in Windows 95 But there is one in Win98! --- TimeHACK.Main/OS/Win95/Win95.Designer.cs | 17 +- TimeHACK.Main/OS/Win95/Win95.cs | 9 - TimeHACK.Main/OS/Win95/Win95.resx | 94 +++-- .../FRMWinClassicAddressBookNewContact.Designer.cs | 227 ------------ .../FRMWinClassicAddressBookNewContact.cs | 71 ---- .../FRMWinClassicAddressBookNewContact.resx | 120 ------- .../FRMWinClassicAddressBookNewFolder.Designer.cs | 81 ----- .../FRMWinClassicAddressBookNewFolder.cs | 27 -- .../FRMWinClassicAddressBookNewFolder.resx | 120 ------- .../AddressBook/WinClassicAddressBook.Designer.cs | 398 --------------------- .../Win95Apps/AddressBook/WinClassicAddressBook.cs | 293 --------------- .../AddressBook/WinClassicAddressBook.resx | 126 ------- .../Win95/Win95Apps/WinClassicWindowsExplorer.cs | 19 + .../FRMWinClassicAddressBookNewContact.Designer.cs | 227 ++++++++++++ .../FRMWinClassicAddressBookNewContact.cs | 71 ++++ .../FRMWinClassicAddressBookNewContact.resx | 120 +++++++ .../FRMWinClassicAddressBookNewFolder.Designer.cs | 81 +++++ .../FRMWinClassicAddressBookNewFolder.cs | 27 ++ .../FRMWinClassicAddressBookNewFolder.resx | 120 +++++++ .../AddressBook/WinClassicAddressBook.Designer.cs | 398 +++++++++++++++++++++ .../Win98Apps/AddressBook/WinClassicAddressBook.cs | 293 +++++++++++++++ .../AddressBook/WinClassicAddressBook.resx | 126 +++++++ TimeHACK.Main/TimeHACK.Main.csproj | 18 +- 23 files changed, 1535 insertions(+), 1548 deletions(-) delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.Designer.cs delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.cs delete mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.resx create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.Designer.cs create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.cs create mode 100644 TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.resx (limited to 'TimeHACK.Main') diff --git a/TimeHACK.Main/OS/Win95/Win95.Designer.cs b/TimeHACK.Main/OS/Win95/Win95.Designer.cs index 15f4feb..b77e2db 100644 --- a/TimeHACK.Main/OS/Win95/Win95.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95.Designer.cs @@ -62,7 +62,6 @@ namespace TimeHACK.OS.Win95 this.SystemToolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DiskDefragmenterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ScanDiskToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.AddressBookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.CalculatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.HyperTerminalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ImagingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -244,7 +243,7 @@ namespace TimeHACK.OS.Win95 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(145, 311); + this.startmenuitems.Size = new System.Drawing.Size(145, 292); this.startmenuitems.TabIndex = 0; this.startmenuitems.Text = "StartMenu"; // @@ -285,7 +284,6 @@ namespace TimeHACK.OS.Win95 this.CommunicationsToolStripMenuItem, this.MultimediaToolStripMenuItem, this.SystemToolsToolStripMenuItem, - this.AddressBookToolStripMenuItem, this.CalculatorToolStripMenuItem, this.HyperTerminalToolStripMenuItem, this.ImagingToolStripMenuItem, @@ -435,18 +433,6 @@ namespace TimeHACK.OS.Win95 this.ScanDiskToolStripMenuItem.Size = new System.Drawing.Size(172, 22); this.ScanDiskToolStripMenuItem.Text = "ScanDisk"; // - // AddressBookToolStripMenuItem - // - this.AddressBookToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.AddressBookToolStripMenuItem.BackgroundImage = global::TimeHACK.Properties.Resources.sliversilver; - this.AddressBookToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.AddressBookToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("AddressBookToolStripMenuItem.Image"))); - this.AddressBookToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; - 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 // this.CalculatorToolStripMenuItem.BackColor = System.Drawing.Color.Silver; @@ -1211,7 +1197,6 @@ namespace TimeHACK.OS.Win95 internal System.Windows.Forms.ToolStripMenuItem SystemToolsToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem DiskDefragmenterToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem ScanDiskToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem AddressBookToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem CalculatorToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem HyperTerminalToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem ImagingToolStripMenuItem; diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index 4e61bb7..5327033 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -357,16 +357,7 @@ 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.WinClassicAddressBook, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook); - nonimportantapps.Add(app); - nonimportantapps[nonimportantapps.Count - 1].BringToFront(); - nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); - - app.BringToFront(); - startmenu.Hide(); } private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e) diff --git a/TimeHACK.Main/OS/Win95/Win95.resx b/TimeHACK.Main/OS/Win95/Win95.resx index ba695aa..5e1c35e 100644 --- a/TimeHACK.Main/OS/Win95/Win95.resx +++ b/TimeHACK.Main/OS/Win95/Win95.resx @@ -121,48 +121,6 @@ 17, 17 - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAJVJREFUOE+VkQsSxCAMQj16bu4GFU3YdO2+Gaqi0F/7j96zfqKHqYiuByYBFfYJ - 1okT9uuef4slmG9gWjdzN4Wnf9bRT1RhaCN+KriGieyvkjr8Rl7AMMbywE0zCBiIBS9Awbn7tUD29xME - Q0rM8IHhPbziKRhMU0pqjVIfcgHAfB2oiugnuEnG/EkZ/4fLZEksutHaB6sGQO/gf7MbAAAAAElFTkSu - QmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAALtJREFUOE91TwESBCEI6un9vBPRYqljhtEIyUZhzTkXKo8J1ZI4P3xjlAjsqpoN - upcBf0zA6+7r8QAxA9170IEPm6l7PWu9A1CLwNaVpSfWNEKLWCECDnkvAdFtMgBDLeHFaNaXEpQu22B9 - NsFA96i2yQlo00wejQG9VfuSCQ0IXAFAVAb468AVwJB3AHpsBFKn2uYkemh9hllezf4KcDKwtqkBpX5j - Dyj5DRIeDDh3wD3c5AYkh2QwOMYPtAJqglssjE8AAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAJVJREFUOE+VkIESgCAIQ/10/pwasJrlkb27nUZsoqPHPbWNlYHCN9gKMTc7O31I - gIa0PM2EE32ErE9WNQEw1y6azbZGvkFAhnBcKMmwrQnCVI0MofA+a6UniIDYqKTx7JhBDeVaQd5fVT9m - M4JvowbwzjNlu4C5DVBgVyll4Zo8AzrK0gfo6ZBSFq7J6g0+ePWj8EPDD0i7RXV30HOWAAAAAElFTkSu - QmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAJJJREFUOE+tkYEOgCAIRP10/tzk4FISZ7ZuuzDwnq4KJSL1aR/txc21llBfQVbh - EZJZZ5C+nEoEcIN0QDyxLVGzm6WAsMYTvRSSAqaw2jRBloApbJUBhLVub4ABqwMY1poCuEYzhPWjRkgK - 6EP7A+obqOc2EzIBeELmtqNFDECI9R3gYmPhCPH+qX6HfAJAQ7iUCwlxft5LSoDNAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw - 4AAABIQCQUtXaBsAAAAASUVORK5CYII= - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAALRJREFUOE+N @@ -234,14 +192,6 @@ EsQgCEM9ukfzZl0CREmrO7uNw0ghL360ndR7v7L9X4BfBxDeVVrOmsaLQqd1DKowK7QmYwxvza4hC66H UpiV6IJlm+UQOnvxvg7aBAPkIWpY87rICtpkX/4SX5MgmkvnxzD4JIC3BCUGzZCEfWb9I4D3M2gDp3xY oXsQ9vRAYAJVbYNqAARf2M+aQa3Hr2QAdmH5TTPoDVz1BW7tA7ajvYP7sMmIAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAG1JREFUOE/N - j1sOgCAQAzk6N/exdqRsAuqH0THNrm2DWP5DrXVxyQ5mWRc6FLO/Wa5WYBKyZyLfn9EBoMJwl65vwA4p - e+EGDkXneJ8coODcM+TSvV9wwmfu5C8jPOZA7YCMleT0KAu68kN9TikrCNOnE4xyRLMAAAAASUVORK5C - YII= @@ -306,6 +256,41 @@ DsAgCAN9Ok/zZ4yiEINsMkkKRNezWWNmlZSM84wabVwyEX3ODNLCZXWiyUrsgEr13h2gZlmvAGZGKQAX VRlAzfcJIAB+/gMiM5smIMbMBLO8uUMqCcxsOzww4/AIiGZ7eR4OQBYZ2uIGswOyWj72ArQMyOoVsMY+ aQNok1HVambm9gBAYeI/oBSQZwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAJVJREFUOE+VkQsSxCAMQj16bu4GFU3YdO2+Gaqi0F/7j96zfqKHqYiuByYBFfYJ + 1okT9uuef4slmG9gWjdzN4Wnf9bRT1RhaCN+KriGieyvkjr8Rl7AMMbywE0zCBiIBS9Awbn7tUD29xME + Q0rM8IHhPbziKRhMU0pqjVIfcgHAfB2oiugnuEnG/EkZ/4fLZEksutHaB6sGQO/gf7MbAAAAAElFTkSu + QmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAALtJREFUOE91TwESBCEI6un9vBPRYqljhtEIyUZhzTkXKo8J1ZI4P3xjlAjsqpoN + upcBf0zA6+7r8QAxA9170IEPm6l7PWu9A1CLwNaVpSfWNEKLWCECDnkvAdFtMgBDLeHFaNaXEpQu22B9 + NsFA96i2yQlo00wejQG9VfuSCQ0IXAFAVAb468AVwJB3AHpsBFKn2uYkemh9hllezf4KcDKwtqkBpX5j + Dyj5DRIeDDh3wD3c5AYkh2QwOMYPtAJqglssjE8AAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAJVJREFUOE+VkIESgCAIQ/10/pwasJrlkb27nUZsoqPHPbWNlYHCN9gKMTc7O31I + gIa0PM2EE32ErE9WNQEw1y6azbZGvkFAhnBcKMmwrQnCVI0MofA+a6UniIDYqKTx7JhBDeVaQd5fVT9m + M4JvowbwzjNlu4C5DVBgVyll4Zo8AzrK0gfo6ZBSFq7J6g0+ePWj8EPDD0i7RXV30HOWAAAAAElFTkSu + QmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAJJJREFUOE+tkYEOgCAIRP10/tzk4FISZ7ZuuzDwnq4KJSL1aR/txc21llBfQVbh + EZJZZ5C+nEoEcIN0QDyxLVGzm6WAsMYTvRSSAqaw2jRBloApbJUBhLVub4ABqwMY1poCuEYzhPWjRkgK + 6EP7A+obqOc2EzIBeELmtqNFDECI9R3gYmPhCPH+qX6HfAJAQ7iUCwlxft5LSoDNAAAAAElFTkSuQmCC @@ -341,6 +326,13 @@ iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw 4AAABIQCQUtXaBsAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw + 4AAABIQCQUtXaBsAAAAASUVORK5CYII= @@ -382,7 +374,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq - ggAAAk1TRnQBSQFMAgEBDAEAAbABAQGwAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA + ggAAAk1TRnQBSQFMAgEBDAEAAbgBAQG4AQEBIAEAASABAAT/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/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs deleted file mode 100644 index 7eb3196..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs +++ /dev/null @@ -1,227 +0,0 @@ -namespace TimeHACK.OS.Win95.Win95Apps -{ - partial class FRMWinClassicAddressBookNewContact - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.button1 = new System.Windows.Forms.Button(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.txtFirst = new System.Windows.Forms.TextBox(); - this.txtMiddle = new System.Windows.Forms.TextBox(); - this.txtLast = new System.Windows.Forms.TextBox(); - this.emails = new System.Windows.Forms.ListView(); - this.label4 = new System.Windows.Forms.Label(); - this.button2 = new System.Windows.Forms.Button(); - this.button3 = new System.Windows.Forms.Button(); - this.pnlAdd = new System.Windows.Forms.Panel(); - this.button4 = new System.Windows.Forms.Button(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.pnlAdd.SuspendLayout(); - this.SuspendLayout(); - // - // button1 - // - this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.button1.Location = new System.Drawing.Point(107, 239); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(105, 23); - this.button1.TabIndex = 0; - this.button1.Text = "OK"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(16, 13); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(60, 13); - this.label1.TabIndex = 1; - this.label1.Text = "First Name:"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(16, 36); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(72, 13); - this.label2.TabIndex = 1; - this.label2.Text = "Middle Name:"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(16, 59); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(61, 13); - this.label3.TabIndex = 1; - this.label3.Text = "Last Name:"; - // - // txtFirst - // - this.txtFirst.Location = new System.Drawing.Point(94, 13); - this.txtFirst.Name = "txtFirst"; - this.txtFirst.Size = new System.Drawing.Size(203, 20); - this.txtFirst.TabIndex = 2; - // - // txtMiddle - // - this.txtMiddle.Location = new System.Drawing.Point(94, 36); - this.txtMiddle.Name = "txtMiddle"; - this.txtMiddle.Size = new System.Drawing.Size(203, 20); - this.txtMiddle.TabIndex = 2; - // - // txtLast - // - this.txtLast.Location = new System.Drawing.Point(94, 59); - this.txtLast.Name = "txtLast"; - this.txtLast.Size = new System.Drawing.Size(203, 20); - this.txtLast.TabIndex = 2; - // - // emails - // - this.emails.Location = new System.Drawing.Point(94, 114); - this.emails.Name = "emails"; - this.emails.Size = new System.Drawing.Size(203, 119); - this.emails.TabIndex = 3; - this.emails.UseCompatibleStateImageBehavior = false; - this.emails.View = System.Windows.Forms.View.List; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(91, 89); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(40, 13); - this.label4.TabIndex = 4; - this.label4.Text = "Emails:"; - // - // cancelButton - // - this.button2.Location = new System.Drawing.Point(13, 114); - this.button2.Name = "cancelButton"; - this.button2.Size = new System.Drawing.Size(75, 23); - this.button2.TabIndex = 5; - this.button2.Text = "Add"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // - // button3 - // - this.button3.Location = new System.Drawing.Point(13, 143); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(75, 23); - this.button3.TabIndex = 5; - this.button3.Text = "Remove"; - this.button3.UseVisualStyleBackColor = true; - // - // pnlAdd - // - this.pnlAdd.Controls.Add(this.button4); - this.pnlAdd.Controls.Add(this.textBox1); - this.pnlAdd.Controls.Add(this.label5); - this.pnlAdd.Location = new System.Drawing.Point(94, 114); - this.pnlAdd.Name = "pnlAdd"; - this.pnlAdd.Size = new System.Drawing.Size(203, 119); - this.pnlAdd.TabIndex = 6; - this.pnlAdd.Visible = false; - // - // button4 - // - this.button4.Location = new System.Drawing.Point(59, 73); - this.button4.Name = "button4"; - this.button4.Size = new System.Drawing.Size(75, 23); - this.button4.TabIndex = 8; - this.button4.Text = "Add"; - this.button4.UseVisualStyleBackColor = true; - this.button4.Click += new System.EventHandler(this.button4_Click); - // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(9, 31); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(187, 20); - this.textBox1.TabIndex = 7; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(60, 18); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(68, 13); - this.label5.TabIndex = 0; - this.label5.Text = "Email to add:"; - // - // FRMWinClassicAddressBookNewContact - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.button3); - this.Controls.Add(this.button2); - this.Controls.Add(this.label4); - this.Controls.Add(this.txtLast); - this.Controls.Add(this.txtMiddle); - this.Controls.Add(this.txtFirst); - this.Controls.Add(this.label3); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); - this.Controls.Add(this.button1); - this.Controls.Add(this.emails); - this.Controls.Add(this.pnlAdd); - this.Name = "FRMWinClassicAddressBookNewContact"; - this.Size = new System.Drawing.Size(332, 265); - this.Load += new System.EventHandler(this.FRMWinClassicAddressBookNewContact_Load); - this.pnlAdd.ResumeLayout(false); - this.pnlAdd.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.TextBox txtFirst; - private System.Windows.Forms.TextBox txtMiddle; - private System.Windows.Forms.TextBox txtLast; - private System.Windows.Forms.ListView emails; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Button button3; - private System.Windows.Forms.Panel pnlAdd; - private System.Windows.Forms.Button button4; - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Label label5; - } -} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs deleted file mode 100644 index 482d54c..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs +++ /dev/null @@ -1,71 +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.Win95Apps -{ - public partial class FRMWinClassicAddressBookNewContact : UserControl - { - public AddressBookContact toSet = new AddressBookContact(); - public FRMWinClassicAddressBookNewContact() - { - InitializeComponent(); - Program.AddressBookSelectedContact = null; - } - - private void button2_Click(object sender, EventArgs e) - { - pnlAdd.Show(); - pnlAdd.BringToFront(); - } - - private void button1_Click(object sender, EventArgs e) - { - if (txtFirst.Text != "" && txtMiddle.Text != "" && txtLast.Text != "") - { - toSet.FirstName = txtFirst.Text; - toSet.MiddleName = txtMiddle.Text; - toSet.LastName = txtLast.Text; - - Program.AddressBookSelectedContact = toSet; - ((Form)this.TopLevelControl).Close(); - } else { - MessageBox.Show("Please fill out the First, Middle and Last name."); - } - } - - private void button4_Click(object sender, EventArgs e) - { - emails.Items.Add(textBox1.Text); - toSet.Emails.Add(textBox1.Text); - emails.BringToFront(); - } - - private void FRMWinClassicAddressBookNewContact_Load(object sender, EventArgs e) - { - if (toSet != null) - { - txtFirst.Text = toSet.FirstName; - txtMiddle.Text = toSet.MiddleName; - txtLast.Text = toSet.LastName; - if (toSet.Emails != null) - { - foreach (string email in toSet.Emails) - { - emails.Items.Add(email); - } - } - } else - { - MessageBox.Show("NULL CONTACT!"); - } - } - } -} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs deleted file mode 100644 index c7efcd0..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs +++ /dev/null @@ -1,81 +0,0 @@ -namespace TimeHACK.OS.Win95.Win95Apps -{ - partial class FRMWinClassicAddressBookNewFolder - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.button1 = new System.Windows.Forms.Button(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(102, 11); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(70, 13); - this.label1.TabIndex = 1; - this.label1.Text = "Folder Name:"; - // - // button1 - // - this.button1.Location = new System.Drawing.Point(97, 78); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 2; - this.button1.Text = "OK"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(3, 40); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(295, 20); - this.textBox1.TabIndex = 3; - // - // FRMWinClassicAddressBookNewFolder - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.textBox1); - this.Controls.Add(this.button1); - this.Controls.Add(this.label1); - this.Name = "FRMWinClassicAddressBookNewFolder"; - this.Size = new System.Drawing.Size(301, 116); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.TextBox textBox1; - } -} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs deleted file mode 100644 index 705fd0d..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs +++ /dev/null @@ -1,27 +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.Win95Apps -{ - public partial class FRMWinClassicAddressBookNewFolder : UserControl - { - - public FRMWinClassicAddressBookNewFolder() - { - InitializeComponent(); - } - - private void button1_Click(object sender, EventArgs e) - { - Program.AddressBookSelectedFolderName = textBox1.Text; - ((Form)this.TopLevelControl).Close(); - } - } -} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.Designer.cs deleted file mode 100644 index 41107e8..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.Designer.cs +++ /dev/null @@ -1,398 +0,0 @@ -namespace TimeHACK.OS.Win95.Win95Apps -{ - partial class WinClassicAddressBook - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Shared Contacts"); - this.topmenu = new System.Windows.Forms.MenuStrip(); - this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.newContactToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.newFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.propertiesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolbarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.foldersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.actionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.sendMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.dialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.internetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.aboutAddressBookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.contactsView = new System.Windows.Forms.ListView(); - this.treeView1 = new System.Windows.Forms.TreeView(); - this.toolbar = new System.Windows.Forms.Panel(); - this.toolProp = new System.Windows.Forms.PictureBox(); - this.toolNew = new System.Windows.Forms.PictureBox(); - this.toolDelete = new System.Windows.Forms.PictureBox(); - this.newContext = new System.Windows.Forms.ContextMenuStrip(this.components); - this.newContactToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.newFolderToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.topmenu.SuspendLayout(); - this.toolbar.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.toolProp)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.toolNew)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.toolDelete)).BeginInit(); - this.newContext.SuspendLayout(); - this.SuspendLayout(); - // - // topmenu - // - this.topmenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200))))); - this.topmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.fileToolStripMenuItem, - 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.newFolderToolStripMenuItem, - this.toolStripSeparator1, - this.propertiesToolStripMenuItem, - this.deleteToolStripMenuItem, - this.toolStripSeparator2, - this.importToolStripMenuItem, - this.exportToolStripMenuItem, - this.toolStripSeparator3, - this.toolStripSeparator4, - this.exitToolStripMenuItem}); - this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; - this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); - this.fileToolStripMenuItem.Text = "File"; - // - // newContactToolStripMenuItem - // - this.newContactToolStripMenuItem.Name = "newContactToolStripMenuItem"; - this.newContactToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.newContactToolStripMenuItem.Text = "New contact..."; - this.newContactToolStripMenuItem.Click += new System.EventHandler(this.newContactToolStripMenuItem_Click); - // - // newFolderToolStripMenuItem - // - this.newFolderToolStripMenuItem.Name = "newFolderToolStripMenuItem"; - this.newFolderToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.newFolderToolStripMenuItem.Text = "New folder..."; - this.newFolderToolStripMenuItem.Click += new System.EventHandler(this.newFolderToolStripMenuItem_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6); - // - // propertiesToolStripMenuItem - // - this.propertiesToolStripMenuItem.Name = "propertiesToolStripMenuItem"; - this.propertiesToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.propertiesToolStripMenuItem.Text = "Properties"; - this.propertiesToolStripMenuItem.Click += new System.EventHandler(this.propertiesToolStripMenuItem_Click); - // - // deleteToolStripMenuItem - // - this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; - this.deleteToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.deleteToolStripMenuItem.Text = "Delete"; - this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6); - // - // importToolStripMenuItem - // - this.importToolStripMenuItem.Name = "importToolStripMenuItem"; - this.importToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.importToolStripMenuItem.Text = "Import..."; - // - // exportToolStripMenuItem - // - this.exportToolStripMenuItem.Name = "exportToolStripMenuItem"; - this.exportToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.exportToolStripMenuItem.Text = "Export..."; - // - // toolStripSeparator3 - // - this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(149, 6); - // - // exitToolStripMenuItem - // - this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.exitToolStripMenuItem.Text = "Exit"; - this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); - // - // viewToolStripMenuItem - // - this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolbarToolStripMenuItem, - this.foldersToolStripMenuItem}); - this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; - this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20); - this.viewToolStripMenuItem.Text = "View"; - // - // toolbarToolStripMenuItem - // - this.toolbarToolStripMenuItem.Checked = true; - this.toolbarToolStripMenuItem.CheckOnClick = true; - this.toolbarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; - this.toolbarToolStripMenuItem.Name = "toolbarToolStripMenuItem"; - this.toolbarToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.toolbarToolStripMenuItem.Text = "Toolbar"; - this.toolbarToolStripMenuItem.Click += new System.EventHandler(this.toolbarToolStripMenuItem_Click); - // - // foldersToolStripMenuItem - // - this.foldersToolStripMenuItem.Checked = true; - this.foldersToolStripMenuItem.CheckOnClick = true; - this.foldersToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; - this.foldersToolStripMenuItem.Name = "foldersToolStripMenuItem"; - this.foldersToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.foldersToolStripMenuItem.Text = "Folders"; - this.foldersToolStripMenuItem.Click += new System.EventHandler(this.foldersToolStripMenuItem_Click); - // - // toolsToolStripMenuItem - // - this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.actionToolStripMenuItem}); - this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; - this.toolsToolStripMenuItem.Size = new System.Drawing.Size(47, 20); - this.toolsToolStripMenuItem.Text = "Tools"; - // - // actionToolStripMenuItem - // - this.actionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.sendMailToolStripMenuItem, - this.dialToolStripMenuItem, - this.internetToolStripMenuItem}); - this.actionToolStripMenuItem.Name = "actionToolStripMenuItem"; - this.actionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.actionToolStripMenuItem.Text = "Action"; - // - // sendMailToolStripMenuItem - // - this.sendMailToolStripMenuItem.Name = "sendMailToolStripMenuItem"; - this.sendMailToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.sendMailToolStripMenuItem.Text = "Send Mail"; - // - // dialToolStripMenuItem - // - this.dialToolStripMenuItem.Name = "dialToolStripMenuItem"; - this.dialToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.dialToolStripMenuItem.Text = "Dial"; - // - // internetToolStripMenuItem - // - this.internetToolStripMenuItem.Name = "internetToolStripMenuItem"; - this.internetToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.internetToolStripMenuItem.Text = "Internet Call"; - // - // helpToolStripMenuItem - // - this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.aboutAddressBookToolStripMenuItem}); - this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; - this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); - this.helpToolStripMenuItem.Text = "Help"; - // - // aboutAddressBookToolStripMenuItem - // - this.aboutAddressBookToolStripMenuItem.Name = "aboutAddressBookToolStripMenuItem"; - this.aboutAddressBookToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.aboutAddressBookToolStripMenuItem.Text = "About Address Book"; - // - // contactsView - // - this.contactsView.Dock = System.Windows.Forms.DockStyle.Fill; - this.contactsView.Location = new System.Drawing.Point(208, 72); - this.contactsView.Name = "contactsView"; - this.contactsView.Size = new System.Drawing.Size(458, 353); - this.contactsView.TabIndex = 3; - this.contactsView.UseCompatibleStateImageBehavior = false; - this.contactsView.View = System.Windows.Forms.View.List; - // - // treeView1 - // - this.treeView1.Dock = System.Windows.Forms.DockStyle.Left; - this.treeView1.Location = new System.Drawing.Point(0, 72); - this.treeView1.Name = "treeView1"; - treeNode1.Name = "Node0"; - treeNode1.Text = "Shared Contacts"; - this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode1}); - this.treeView1.Size = new System.Drawing.Size(208, 353); - this.treeView1.TabIndex = 4; - this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); - // - // toolbar - // - this.toolbar.BackColor = System.Drawing.Color.Silver; - this.toolbar.BackgroundImage = global::TimeHACK.Properties.Resources.WinClassicGENERALApplicationToolbarBackground; - this.toolbar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.toolbar.Controls.Add(this.toolProp); - this.toolbar.Controls.Add(this.toolNew); - this.toolbar.Controls.Add(this.toolDelete); - this.toolbar.Dock = System.Windows.Forms.DockStyle.Top; - this.toolbar.Location = new System.Drawing.Point(0, 24); - this.toolbar.Name = "toolbar"; - this.toolbar.Size = new System.Drawing.Size(666, 48); - this.toolbar.TabIndex = 5; - // - // toolProp - // - this.toolProp.BackColor = System.Drawing.Color.Transparent; - this.toolProp.Image = global::TimeHACK.Properties.Resources.WinClassicAddressBookPropertiesIcon; - this.toolProp.Location = new System.Drawing.Point(65, 3); - this.toolProp.Name = "toolProp"; - this.toolProp.Size = new System.Drawing.Size(61, 39); - this.toolProp.TabIndex = 0; - this.toolProp.TabStop = false; - this.toolProp.Click += new System.EventHandler(this.toolProp_Click); - // - // toolNew - // - this.toolNew.BackColor = System.Drawing.Color.Transparent; - this.toolNew.Image = global::TimeHACK.Properties.Resources.WinClassicAddressBookNewIcon; - this.toolNew.Location = new System.Drawing.Point(16, 4); - this.toolNew.Name = "toolNew"; - this.toolNew.Size = new System.Drawing.Size(43, 39); - this.toolNew.TabIndex = 0; - this.toolNew.TabStop = false; - // - // toolDelete - // - this.toolDelete.BackColor = System.Drawing.Color.Transparent; - this.toolDelete.Image = global::TimeHACK.Properties.Resources.WinClassicAddressBookDeleteIcon; - this.toolDelete.Location = new System.Drawing.Point(132, 3); - this.toolDelete.Name = "toolDelete"; - this.toolDelete.Size = new System.Drawing.Size(61, 39); - this.toolDelete.TabIndex = 0; - this.toolDelete.TabStop = false; - this.toolDelete.Click += new System.EventHandler(this.toolDelete_Click); - // - // newContext - // - this.newContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.newContactToolStripMenuItem1, - this.newFolderToolStripMenuItem1}); - this.newContext.Name = "newContext"; - this.newContext.Size = new System.Drawing.Size(153, 48); - // - // newContactToolStripMenuItem1 - // - this.newContactToolStripMenuItem1.Name = "newContactToolStripMenuItem1"; - this.newContactToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); - this.newContactToolStripMenuItem1.Text = "New Contact..."; - this.newContactToolStripMenuItem1.Click += new System.EventHandler(this.newContactToolStripMenuItem1_Click); - // - // newFolderToolStripMenuItem1 - // - this.newFolderToolStripMenuItem1.Name = "newFolderToolStripMenuItem1"; - this.newFolderToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); - this.newFolderToolStripMenuItem1.Text = "New Folder..."; - this.newFolderToolStripMenuItem1.Click += new System.EventHandler(this.newFolderToolStripMenuItem1_Click); - // - // WinClassicAddressBook - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.contactsView); - this.Controls.Add(this.treeView1); - this.Controls.Add(this.toolbar); - this.Controls.Add(this.topmenu); - this.Name = "WinClassicAddressBook"; - this.Size = new System.Drawing.Size(666, 425); - this.topmenu.ResumeLayout(false); - this.topmenu.PerformLayout(); - this.toolbar.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.toolProp)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.toolNew)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.toolDelete)).EndInit(); - this.newContext.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - private System.Windows.Forms.MenuStrip topmenu; - private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; - 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 newFolderToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripMenuItem propertiesToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripMenuItem importToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem exportToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; - private System.Windows.Forms.ListView contactsView; - private System.Windows.Forms.TreeView treeView1; - private System.Windows.Forms.ToolStripMenuItem toolbarToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem foldersToolStripMenuItem; - private System.Windows.Forms.Panel toolbar; - private System.Windows.Forms.PictureBox toolNew; - private System.Windows.Forms.PictureBox toolDelete; - private System.Windows.Forms.PictureBox toolProp; - private System.Windows.Forms.ToolStripMenuItem actionToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem sendMailToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem dialToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem internetToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem aboutAddressBookToolStripMenuItem; - private System.Windows.Forms.ContextMenuStrip newContext; - private System.Windows.Forms.ToolStripMenuItem newContactToolStripMenuItem1; - private System.Windows.Forms.ToolStripMenuItem newFolderToolStripMenuItem1; - } -} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.cs b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.cs deleted file mode 100644 index 95ee509..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.cs +++ /dev/null @@ -1,293 +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.Engine; -using TimeHACK.Engine.Template; - -namespace TimeHACK.OS.Win95.Win95Apps -{ - public partial class WinClassicAddressBook : UserControl - { - WindowManager wm = new WindowManager(); - - public List AddressBookObjects; - 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); - //} - - AddressBookObjects = new List - { - new AddressBookContactList() - { - AttachedNode = treeView1.Nodes[0].Text, - } - }; - } - - private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) - { - UpdateContactListFromNodeName(treeView1.SelectedNode.Text); - } - - //AddressBookContactList GetAddressBookContactListFromNode(string NodeText) - //{ - // AddressBookContactList toReturn = new AddressBookContactList(); - // foreach (AddressBookContactList lstitem in AddressBookObjects) - // { - // if (lstitem.AttachedNode == NodeText) - // { - // toReturn = lstitem; - // } - // } - // if (toReturn == null) - // { - // // Something has gone wrong! - // MessageBox.Show("Unable to find list of items"); - // } - // MessageBox.Show("Gone through process!"); - // return toReturn; - //} - - public void UpdateContactListFromNodeName(string NodeName) - { - contactsView.Items.Clear(); - try - { - foreach (AddressBookContactList ContactList in AddressBookObjects) - { - if (ContactList.AttachedNode == NodeName) - { - foreach (AddressBookContact contact in ContactList.Contacts) - { - if (contact != null) - { - if (contact.FirstName != null) - { - contactsView.Items.Add(contact.FirstName + " " + contact.MiddleName + " " + contact.LastName); - } - } - else - { - MessageBox.Show("Null contact!"); - } - } - } - } - } catch - { - - } - } - - public void AddFolderToNode(TreeNode OldTreeNode, string NewNodeName) - { - if (OldTreeNode != null) - { - OldTreeNode.Nodes.Add(NewNodeName); - - AddressBookObjects.Add(new AddressBookContactList - { - AttachedNode = NewNodeName, - }); - } - } - - private void newFolderToolStripMenuItem_Click(object sender, EventArgs e) - { - NewFolder(); - } - - void NewFolder() - { - FRMWinClassicAddressBookNewFolder abnf = new FRMWinClassicAddressBookNewFolder(); - WinClassic app = wm.StartWin95(abnf, "Address Book - New Folder", Properties.Resources.Win95IconWordpad, true, true, true); - - if (treeView1.SelectedNode != null) - { - if (Program.AddressBookSelectedFolderName != null) - { - AddFolderToNode(treeView1.SelectedNode, Program.AddressBookSelectedFolderName); - } - else - { - wm.StartInfobox95("Address Book - New Folder", "You must enter a folder name!", Properties.Resources.Win95Error); - } - } - } - - private void newContactToolStripMenuItem_Click(object sender, EventArgs e) - { - NewContact(); - } - - void NewContact() - { - FRMWinClassicAddressBookNewContact abnc = new FRMWinClassicAddressBookNewContact(); - WinClassic app = wm.StartWin95(abnc, "Address Book - New Contact", Properties.Resources.Win95IconWordpad, true, true, true); - - if (treeView1.SelectedNode != null) - { - if (Program.AddressBookSelectedContact != null) - { - foreach (AddressBookContactList ContactList in AddressBookObjects) - { - if (ContactList.AttachedNode == treeView1.SelectedNode.Text) - { - ContactList.Contacts.Add(Program.AddressBookSelectedContact); - contactsView.Items.Add(Program.AddressBookSelectedContact.FirstName + " " + Program.AddressBookSelectedContact.MiddleName + " " + Program.AddressBookSelectedContact.LastName); - } - } - } - } - } - - private void toolProp_Click(object sender, EventArgs e) - { - OpenProperties(); - } - - void OpenProperties() - { - FRMWinClassicAddressBookNewContact abnc = new FRMWinClassicAddressBookNewContact(); - - // Finds the selected contact - if (treeView1.SelectedNode != null) - { - foreach (AddressBookContactList ContactList in AddressBookObjects) - { - if (ContactList.AttachedNode == treeView1.SelectedNode.Text) - { - foreach (AddressBookContact Contact in ContactList.Contacts) - { - if ((Contact.FirstName + " " + Contact.MiddleName + " " + Contact.LastName) == contactsView.FocusedItem.Text) - { - abnc.toSet = Contact; - } - } - } - } - WinClassic app = wm.StartWin95(abnc, "Address Book - Contact Properties", Properties.Resources.Win95IconWordpad, true, true, true); - - if (treeView1.SelectedNode != null) - { - if (Program.AddressBookSelectedContact != null) - { - foreach (AddressBookContactList ContactList in AddressBookObjects) - { - if (ContactList.AttachedNode == treeView1.SelectedNode.Text) - { - foreach (AddressBookContact Contact in ContactList.Contacts) - { - if ((Contact.FirstName + " " + Contact.MiddleName + " " + Contact.LastName) == contactsView.FocusedItem.Text) - { - ContactList.Contacts.Remove(Contact); - ContactList.Contacts.Add(Program.AddressBookSelectedContact); - } - } - } - } - } - } - } - - - } - - private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) - { - OpenProperties(); - } - - private void deleteToolStripMenuItem_Click(object sender, EventArgs e) - { - DeleteContact(); - } - - void DeleteContact() - { - if (treeView1.SelectedNode != null) - { - foreach (AddressBookContactList ContactList in AddressBookObjects) - { - if (ContactList.AttachedNode == treeView1.SelectedNode.Text) - { - foreach (AddressBookContact Contact in ContactList.Contacts) - { - if ((Contact.FirstName + " " + Contact.MiddleName + " " + Contact.LastName) == contactsView.FocusedItem.Text) - { - ContactList.Contacts.Remove(Contact); - } - } - } - } - } - } - - private void toolDelete_Click(object sender, EventArgs e) - { - DeleteContact(); - } - - private void newContactToolStripMenuItem1_Click(object sender, EventArgs e) - { - NewContact(); - } - - private void newFolderToolStripMenuItem1_Click(object sender, EventArgs e) - { - NewFolder(); - } - - private void toolbarToolStripMenuItem_Click(object sender, EventArgs e) - { - toolbar.Visible = toolbarToolStripMenuItem.Checked; - } - - private void foldersToolStripMenuItem_Click(object sender, EventArgs e) - { - treeView1.Visible = foldersToolStripMenuItem.Checked; - } - - private void exitToolStripMenuItem_Click(object sender, EventArgs e) - { - ((Form)this.TopLevelControl).Close(); - } - } - - public class AddressBookContact - { - public string FirstName; - public string MiddleName; - public string LastName; - public List Emails = new List(); - } - - public class AddressBookContactList - { - public string AttachedNode; - public List Contacts = new List(); - } -} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.resx b/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.resx deleted file mode 100644 index e1c367e..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/AddressBook/WinClassicAddressBook.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 118, 17 - - \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs index f7748fe..1b12fbc 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs @@ -173,10 +173,29 @@ namespace TimeHACK.OS.Win95.Win95Apps case "calc": Engine.Template.WinClassic appCalc = wm.StartWin95(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, true, true); Program.AddTaskbarItem(appCalc, appCalc.Tag.ToString(), "Calculator", Properties.Resources.WinClassicCalc); + + Program.nonimportantapps.Add(appCalc); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); + break; case "wordpad": Engine.Template.WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.WinClassicWordpad, true, true); Program.AddTaskbarItem(appWP, appWP.Tag.ToString(), "Wordpad", Properties.Resources.WinClassicWordpad); + + Program.nonimportantapps.Add(appWP); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); + + break; + case "addressbook": + WinClassic appAdBk = wm.StartWin95(new WinClassicAddressBook(), "Address Book", Properties.Resources.WinClassicAddressBook, true, true); + Program.AddTaskbarItem(appAdBk, appAdBk.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook); + + Program.nonimportantapps.Add(appAdBk); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); + break; } } diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs new file mode 100644 index 0000000..7eb3196 --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs @@ -0,0 +1,227 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class FRMWinClassicAddressBookNewContact + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.txtFirst = new System.Windows.Forms.TextBox(); + this.txtMiddle = new System.Windows.Forms.TextBox(); + this.txtLast = new System.Windows.Forms.TextBox(); + this.emails = new System.Windows.Forms.ListView(); + this.label4 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.pnlAdd = new System.Windows.Forms.Panel(); + this.button4 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.pnlAdd.SuspendLayout(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.button1.Location = new System.Drawing.Point(107, 239); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(105, 23); + this.button1.TabIndex = 0; + this.button1.Text = "OK"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(16, 13); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(60, 13); + this.label1.TabIndex = 1; + this.label1.Text = "First Name:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(16, 36); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(72, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Middle Name:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(16, 59); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(61, 13); + this.label3.TabIndex = 1; + this.label3.Text = "Last Name:"; + // + // txtFirst + // + this.txtFirst.Location = new System.Drawing.Point(94, 13); + this.txtFirst.Name = "txtFirst"; + this.txtFirst.Size = new System.Drawing.Size(203, 20); + this.txtFirst.TabIndex = 2; + // + // txtMiddle + // + this.txtMiddle.Location = new System.Drawing.Point(94, 36); + this.txtMiddle.Name = "txtMiddle"; + this.txtMiddle.Size = new System.Drawing.Size(203, 20); + this.txtMiddle.TabIndex = 2; + // + // txtLast + // + this.txtLast.Location = new System.Drawing.Point(94, 59); + this.txtLast.Name = "txtLast"; + this.txtLast.Size = new System.Drawing.Size(203, 20); + this.txtLast.TabIndex = 2; + // + // emails + // + this.emails.Location = new System.Drawing.Point(94, 114); + this.emails.Name = "emails"; + this.emails.Size = new System.Drawing.Size(203, 119); + this.emails.TabIndex = 3; + this.emails.UseCompatibleStateImageBehavior = false; + this.emails.View = System.Windows.Forms.View.List; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(91, 89); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(40, 13); + this.label4.TabIndex = 4; + this.label4.Text = "Emails:"; + // + // cancelButton + // + this.button2.Location = new System.Drawing.Point(13, 114); + this.button2.Name = "cancelButton"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 5; + this.button2.Text = "Add"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // button3 + // + this.button3.Location = new System.Drawing.Point(13, 143); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 23); + this.button3.TabIndex = 5; + this.button3.Text = "Remove"; + this.button3.UseVisualStyleBackColor = true; + // + // pnlAdd + // + this.pnlAdd.Controls.Add(this.button4); + this.pnlAdd.Controls.Add(this.textBox1); + this.pnlAdd.Controls.Add(this.label5); + this.pnlAdd.Location = new System.Drawing.Point(94, 114); + this.pnlAdd.Name = "pnlAdd"; + this.pnlAdd.Size = new System.Drawing.Size(203, 119); + this.pnlAdd.TabIndex = 6; + this.pnlAdd.Visible = false; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(59, 73); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(75, 23); + this.button4.TabIndex = 8; + this.button4.Text = "Add"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.button4_Click); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(9, 31); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(187, 20); + this.textBox1.TabIndex = 7; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(60, 18); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(68, 13); + this.label5.TabIndex = 0; + this.label5.Text = "Email to add:"; + // + // FRMWinClassicAddressBookNewContact + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.button3); + this.Controls.Add(this.button2); + this.Controls.Add(this.label4); + this.Controls.Add(this.txtLast); + this.Controls.Add(this.txtMiddle); + this.Controls.Add(this.txtFirst); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.button1); + this.Controls.Add(this.emails); + this.Controls.Add(this.pnlAdd); + this.Name = "FRMWinClassicAddressBookNewContact"; + this.Size = new System.Drawing.Size(332, 265); + this.Load += new System.EventHandler(this.FRMWinClassicAddressBookNewContact_Load); + this.pnlAdd.ResumeLayout(false); + this.pnlAdd.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox txtFirst; + private System.Windows.Forms.TextBox txtMiddle; + private System.Windows.Forms.TextBox txtLast; + private System.Windows.Forms.ListView emails; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Panel pnlAdd; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label5; + } +} diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs new file mode 100644 index 0000000..482d54c --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.cs @@ -0,0 +1,71 @@ +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.Win95Apps +{ + public partial class FRMWinClassicAddressBookNewContact : UserControl + { + public AddressBookContact toSet = new AddressBookContact(); + public FRMWinClassicAddressBookNewContact() + { + InitializeComponent(); + Program.AddressBookSelectedContact = null; + } + + private void button2_Click(object sender, EventArgs e) + { + pnlAdd.Show(); + pnlAdd.BringToFront(); + } + + private void button1_Click(object sender, EventArgs e) + { + if (txtFirst.Text != "" && txtMiddle.Text != "" && txtLast.Text != "") + { + toSet.FirstName = txtFirst.Text; + toSet.MiddleName = txtMiddle.Text; + toSet.LastName = txtLast.Text; + + Program.AddressBookSelectedContact = toSet; + ((Form)this.TopLevelControl).Close(); + } else { + MessageBox.Show("Please fill out the First, Middle and Last name."); + } + } + + private void button4_Click(object sender, EventArgs e) + { + emails.Items.Add(textBox1.Text); + toSet.Emails.Add(textBox1.Text); + emails.BringToFront(); + } + + private void FRMWinClassicAddressBookNewContact_Load(object sender, EventArgs e) + { + if (toSet != null) + { + txtFirst.Text = toSet.FirstName; + txtMiddle.Text = toSet.MiddleName; + txtLast.Text = toSet.LastName; + if (toSet.Emails != null) + { + foreach (string email in toSet.Emails) + { + emails.Items.Add(email); + } + } + } else + { + MessageBox.Show("NULL CONTACT!"); + } + } + } +} diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewContact.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs new file mode 100644 index 0000000..c7efcd0 --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs @@ -0,0 +1,81 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class FRMWinClassicAddressBookNewFolder + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(102, 11); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(70, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Folder Name:"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(97, 78); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 2; + this.button1.Text = "OK"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(3, 40); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(295, 20); + this.textBox1.TabIndex = 3; + // + // FRMWinClassicAddressBookNewFolder + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.textBox1); + this.Controls.Add(this.button1); + this.Controls.Add(this.label1); + this.Name = "FRMWinClassicAddressBookNewFolder"; + this.Size = new System.Drawing.Size(301, 116); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.TextBox textBox1; + } +} diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs new file mode 100644 index 0000000..705fd0d --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.cs @@ -0,0 +1,27 @@ +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.Win95Apps +{ + public partial class FRMWinClassicAddressBookNewFolder : UserControl + { + + public FRMWinClassicAddressBookNewFolder() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + Program.AddressBookSelectedFolderName = textBox1.Text; + ((Form)this.TopLevelControl).Close(); + } + } +} diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/FRMWinClassicAddressBookNewFolder.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.Designer.cs b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.Designer.cs new file mode 100644 index 0000000..41107e8 --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.Designer.cs @@ -0,0 +1,398 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class WinClassicAddressBook + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Shared Contacts"); + this.topmenu = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.newContactToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.newFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.propertiesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolbarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.foldersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.actionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.sendMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.dialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.internetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutAddressBookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.contactsView = new System.Windows.Forms.ListView(); + this.treeView1 = new System.Windows.Forms.TreeView(); + this.toolbar = new System.Windows.Forms.Panel(); + this.toolProp = new System.Windows.Forms.PictureBox(); + this.toolNew = new System.Windows.Forms.PictureBox(); + this.toolDelete = new System.Windows.Forms.PictureBox(); + this.newContext = new System.Windows.Forms.ContextMenuStrip(this.components); + this.newContactToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.newFolderToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.topmenu.SuspendLayout(); + this.toolbar.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.toolProp)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.toolNew)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.toolDelete)).BeginInit(); + this.newContext.SuspendLayout(); + this.SuspendLayout(); + // + // topmenu + // + this.topmenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200))))); + this.topmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + 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.newFolderToolStripMenuItem, + this.toolStripSeparator1, + this.propertiesToolStripMenuItem, + this.deleteToolStripMenuItem, + this.toolStripSeparator2, + this.importToolStripMenuItem, + this.exportToolStripMenuItem, + this.toolStripSeparator3, + this.toolStripSeparator4, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // newContactToolStripMenuItem + // + this.newContactToolStripMenuItem.Name = "newContactToolStripMenuItem"; + this.newContactToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.newContactToolStripMenuItem.Text = "New contact..."; + this.newContactToolStripMenuItem.Click += new System.EventHandler(this.newContactToolStripMenuItem_Click); + // + // newFolderToolStripMenuItem + // + this.newFolderToolStripMenuItem.Name = "newFolderToolStripMenuItem"; + this.newFolderToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.newFolderToolStripMenuItem.Text = "New folder..."; + this.newFolderToolStripMenuItem.Click += new System.EventHandler(this.newFolderToolStripMenuItem_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6); + // + // propertiesToolStripMenuItem + // + this.propertiesToolStripMenuItem.Name = "propertiesToolStripMenuItem"; + this.propertiesToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.propertiesToolStripMenuItem.Text = "Properties"; + this.propertiesToolStripMenuItem.Click += new System.EventHandler(this.propertiesToolStripMenuItem_Click); + // + // deleteToolStripMenuItem + // + this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; + this.deleteToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.deleteToolStripMenuItem.Text = "Delete"; + this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6); + // + // importToolStripMenuItem + // + this.importToolStripMenuItem.Name = "importToolStripMenuItem"; + this.importToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.importToolStripMenuItem.Text = "Import..."; + // + // exportToolStripMenuItem + // + this.exportToolStripMenuItem.Name = "exportToolStripMenuItem"; + this.exportToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.exportToolStripMenuItem.Text = "Export..."; + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6); + // + // toolStripSeparator4 + // + this.toolStripSeparator4.Name = "toolStripSeparator4"; + this.toolStripSeparator4.Size = new System.Drawing.Size(149, 6); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.exitToolStripMenuItem.Text = "Exit"; + this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); + // + // viewToolStripMenuItem + // + this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolbarToolStripMenuItem, + this.foldersToolStripMenuItem}); + this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; + this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.viewToolStripMenuItem.Text = "View"; + // + // toolbarToolStripMenuItem + // + this.toolbarToolStripMenuItem.Checked = true; + this.toolbarToolStripMenuItem.CheckOnClick = true; + this.toolbarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; + this.toolbarToolStripMenuItem.Name = "toolbarToolStripMenuItem"; + this.toolbarToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.toolbarToolStripMenuItem.Text = "Toolbar"; + this.toolbarToolStripMenuItem.Click += new System.EventHandler(this.toolbarToolStripMenuItem_Click); + // + // foldersToolStripMenuItem + // + this.foldersToolStripMenuItem.Checked = true; + this.foldersToolStripMenuItem.CheckOnClick = true; + this.foldersToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; + this.foldersToolStripMenuItem.Name = "foldersToolStripMenuItem"; + this.foldersToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.foldersToolStripMenuItem.Text = "Folders"; + this.foldersToolStripMenuItem.Click += new System.EventHandler(this.foldersToolStripMenuItem_Click); + // + // toolsToolStripMenuItem + // + this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.actionToolStripMenuItem}); + this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; + this.toolsToolStripMenuItem.Size = new System.Drawing.Size(47, 20); + this.toolsToolStripMenuItem.Text = "Tools"; + // + // actionToolStripMenuItem + // + this.actionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.sendMailToolStripMenuItem, + this.dialToolStripMenuItem, + this.internetToolStripMenuItem}); + this.actionToolStripMenuItem.Name = "actionToolStripMenuItem"; + this.actionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.actionToolStripMenuItem.Text = "Action"; + // + // sendMailToolStripMenuItem + // + this.sendMailToolStripMenuItem.Name = "sendMailToolStripMenuItem"; + this.sendMailToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.sendMailToolStripMenuItem.Text = "Send Mail"; + // + // dialToolStripMenuItem + // + this.dialToolStripMenuItem.Name = "dialToolStripMenuItem"; + this.dialToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.dialToolStripMenuItem.Text = "Dial"; + // + // internetToolStripMenuItem + // + this.internetToolStripMenuItem.Name = "internetToolStripMenuItem"; + this.internetToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.internetToolStripMenuItem.Text = "Internet Call"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aboutAddressBookToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "Help"; + // + // aboutAddressBookToolStripMenuItem + // + this.aboutAddressBookToolStripMenuItem.Name = "aboutAddressBookToolStripMenuItem"; + this.aboutAddressBookToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.aboutAddressBookToolStripMenuItem.Text = "About Address Book"; + // + // contactsView + // + this.contactsView.Dock = System.Windows.Forms.DockStyle.Fill; + this.contactsView.Location = new System.Drawing.Point(208, 72); + this.contactsView.Name = "contactsView"; + this.contactsView.Size = new System.Drawing.Size(458, 353); + this.contactsView.TabIndex = 3; + this.contactsView.UseCompatibleStateImageBehavior = false; + this.contactsView.View = System.Windows.Forms.View.List; + // + // treeView1 + // + this.treeView1.Dock = System.Windows.Forms.DockStyle.Left; + this.treeView1.Location = new System.Drawing.Point(0, 72); + this.treeView1.Name = "treeView1"; + treeNode1.Name = "Node0"; + treeNode1.Text = "Shared Contacts"; + this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { + treeNode1}); + this.treeView1.Size = new System.Drawing.Size(208, 353); + this.treeView1.TabIndex = 4; + this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); + // + // toolbar + // + this.toolbar.BackColor = System.Drawing.Color.Silver; + this.toolbar.BackgroundImage = global::TimeHACK.Properties.Resources.WinClassicGENERALApplicationToolbarBackground; + this.toolbar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.toolbar.Controls.Add(this.toolProp); + this.toolbar.Controls.Add(this.toolNew); + this.toolbar.Controls.Add(this.toolDelete); + this.toolbar.Dock = System.Windows.Forms.DockStyle.Top; + this.toolbar.Location = new System.Drawing.Point(0, 24); + this.toolbar.Name = "toolbar"; + this.toolbar.Size = new System.Drawing.Size(666, 48); + this.toolbar.TabIndex = 5; + // + // toolProp + // + this.toolProp.BackColor = System.Drawing.Color.Transparent; + this.toolProp.Image = global::TimeHACK.Properties.Resources.WinClassicAddressBookPropertiesIcon; + this.toolProp.Location = new System.Drawing.Point(65, 3); + this.toolProp.Name = "toolProp"; + this.toolProp.Size = new System.Drawing.Size(61, 39); + this.toolProp.TabIndex = 0; + this.toolProp.TabStop = false; + this.toolProp.Click += new System.EventHandler(this.toolProp_Click); + // + // toolNew + // + this.toolNew.BackColor = System.Drawing.Color.Transparent; + this.toolNew.Image = global::TimeHACK.Properties.Resources.WinClassicAddressBookNewIcon; + this.toolNew.Location = new System.Drawing.Point(16, 4); + this.toolNew.Name = "toolNew"; + this.toolNew.Size = new System.Drawing.Size(43, 39); + this.toolNew.TabIndex = 0; + this.toolNew.TabStop = false; + // + // toolDelete + // + this.toolDelete.BackColor = System.Drawing.Color.Transparent; + this.toolDelete.Image = global::TimeHACK.Properties.Resources.WinClassicAddressBookDeleteIcon; + this.toolDelete.Location = new System.Drawing.Point(132, 3); + this.toolDelete.Name = "toolDelete"; + this.toolDelete.Size = new System.Drawing.Size(61, 39); + this.toolDelete.TabIndex = 0; + this.toolDelete.TabStop = false; + this.toolDelete.Click += new System.EventHandler(this.toolDelete_Click); + // + // newContext + // + this.newContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newContactToolStripMenuItem1, + this.newFolderToolStripMenuItem1}); + this.newContext.Name = "newContext"; + this.newContext.Size = new System.Drawing.Size(153, 48); + // + // newContactToolStripMenuItem1 + // + this.newContactToolStripMenuItem1.Name = "newContactToolStripMenuItem1"; + this.newContactToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.newContactToolStripMenuItem1.Text = "New Contact..."; + this.newContactToolStripMenuItem1.Click += new System.EventHandler(this.newContactToolStripMenuItem1_Click); + // + // newFolderToolStripMenuItem1 + // + this.newFolderToolStripMenuItem1.Name = "newFolderToolStripMenuItem1"; + this.newFolderToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.newFolderToolStripMenuItem1.Text = "New Folder..."; + this.newFolderToolStripMenuItem1.Click += new System.EventHandler(this.newFolderToolStripMenuItem1_Click); + // + // WinClassicAddressBook + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.contactsView); + this.Controls.Add(this.treeView1); + this.Controls.Add(this.toolbar); + this.Controls.Add(this.topmenu); + this.Name = "WinClassicAddressBook"; + this.Size = new System.Drawing.Size(666, 425); + this.topmenu.ResumeLayout(false); + this.topmenu.PerformLayout(); + this.toolbar.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.toolProp)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.toolNew)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.toolDelete)).EndInit(); + this.newContext.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.MenuStrip topmenu; + private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; + 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 newFolderToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripMenuItem propertiesToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem importToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem exportToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; + private System.Windows.Forms.ListView contactsView; + private System.Windows.Forms.TreeView treeView1; + private System.Windows.Forms.ToolStripMenuItem toolbarToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem foldersToolStripMenuItem; + private System.Windows.Forms.Panel toolbar; + private System.Windows.Forms.PictureBox toolNew; + private System.Windows.Forms.PictureBox toolDelete; + private System.Windows.Forms.PictureBox toolProp; + private System.Windows.Forms.ToolStripMenuItem actionToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem sendMailToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem dialToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem internetToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aboutAddressBookToolStripMenuItem; + private System.Windows.Forms.ContextMenuStrip newContext; + private System.Windows.Forms.ToolStripMenuItem newContactToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem newFolderToolStripMenuItem1; + } +} diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.cs b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.cs new file mode 100644 index 0000000..95ee509 --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.cs @@ -0,0 +1,293 @@ +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.Engine; +using TimeHACK.Engine.Template; + +namespace TimeHACK.OS.Win95.Win95Apps +{ + public partial class WinClassicAddressBook : UserControl + { + WindowManager wm = new WindowManager(); + + public List AddressBookObjects; + 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); + //} + + AddressBookObjects = new List + { + new AddressBookContactList() + { + AttachedNode = treeView1.Nodes[0].Text, + } + }; + } + + private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) + { + UpdateContactListFromNodeName(treeView1.SelectedNode.Text); + } + + //AddressBookContactList GetAddressBookContactListFromNode(string NodeText) + //{ + // AddressBookContactList toReturn = new AddressBookContactList(); + // foreach (AddressBookContactList lstitem in AddressBookObjects) + // { + // if (lstitem.AttachedNode == NodeText) + // { + // toReturn = lstitem; + // } + // } + // if (toReturn == null) + // { + // // Something has gone wrong! + // MessageBox.Show("Unable to find list of items"); + // } + // MessageBox.Show("Gone through process!"); + // return toReturn; + //} + + public void UpdateContactListFromNodeName(string NodeName) + { + contactsView.Items.Clear(); + try + { + foreach (AddressBookContactList ContactList in AddressBookObjects) + { + if (ContactList.AttachedNode == NodeName) + { + foreach (AddressBookContact contact in ContactList.Contacts) + { + if (contact != null) + { + if (contact.FirstName != null) + { + contactsView.Items.Add(contact.FirstName + " " + contact.MiddleName + " " + contact.LastName); + } + } + else + { + MessageBox.Show("Null contact!"); + } + } + } + } + } catch + { + + } + } + + public void AddFolderToNode(TreeNode OldTreeNode, string NewNodeName) + { + if (OldTreeNode != null) + { + OldTreeNode.Nodes.Add(NewNodeName); + + AddressBookObjects.Add(new AddressBookContactList + { + AttachedNode = NewNodeName, + }); + } + } + + private void newFolderToolStripMenuItem_Click(object sender, EventArgs e) + { + NewFolder(); + } + + void NewFolder() + { + FRMWinClassicAddressBookNewFolder abnf = new FRMWinClassicAddressBookNewFolder(); + WinClassic app = wm.StartWin95(abnf, "Address Book - New Folder", Properties.Resources.Win95IconWordpad, true, true, true); + + if (treeView1.SelectedNode != null) + { + if (Program.AddressBookSelectedFolderName != null) + { + AddFolderToNode(treeView1.SelectedNode, Program.AddressBookSelectedFolderName); + } + else + { + wm.StartInfobox95("Address Book - New Folder", "You must enter a folder name!", Properties.Resources.Win95Error); + } + } + } + + private void newContactToolStripMenuItem_Click(object sender, EventArgs e) + { + NewContact(); + } + + void NewContact() + { + FRMWinClassicAddressBookNewContact abnc = new FRMWinClassicAddressBookNewContact(); + WinClassic app = wm.StartWin95(abnc, "Address Book - New Contact", Properties.Resources.Win95IconWordpad, true, true, true); + + if (treeView1.SelectedNode != null) + { + if (Program.AddressBookSelectedContact != null) + { + foreach (AddressBookContactList ContactList in AddressBookObjects) + { + if (ContactList.AttachedNode == treeView1.SelectedNode.Text) + { + ContactList.Contacts.Add(Program.AddressBookSelectedContact); + contactsView.Items.Add(Program.AddressBookSelectedContact.FirstName + " " + Program.AddressBookSelectedContact.MiddleName + " " + Program.AddressBookSelectedContact.LastName); + } + } + } + } + } + + private void toolProp_Click(object sender, EventArgs e) + { + OpenProperties(); + } + + void OpenProperties() + { + FRMWinClassicAddressBookNewContact abnc = new FRMWinClassicAddressBookNewContact(); + + // Finds the selected contact + if (treeView1.SelectedNode != null) + { + foreach (AddressBookContactList ContactList in AddressBookObjects) + { + if (ContactList.AttachedNode == treeView1.SelectedNode.Text) + { + foreach (AddressBookContact Contact in ContactList.Contacts) + { + if ((Contact.FirstName + " " + Contact.MiddleName + " " + Contact.LastName) == contactsView.FocusedItem.Text) + { + abnc.toSet = Contact; + } + } + } + } + WinClassic app = wm.StartWin95(abnc, "Address Book - Contact Properties", Properties.Resources.Win95IconWordpad, true, true, true); + + if (treeView1.SelectedNode != null) + { + if (Program.AddressBookSelectedContact != null) + { + foreach (AddressBookContactList ContactList in AddressBookObjects) + { + if (ContactList.AttachedNode == treeView1.SelectedNode.Text) + { + foreach (AddressBookContact Contact in ContactList.Contacts) + { + if ((Contact.FirstName + " " + Contact.MiddleName + " " + Contact.LastName) == contactsView.FocusedItem.Text) + { + ContactList.Contacts.Remove(Contact); + ContactList.Contacts.Add(Program.AddressBookSelectedContact); + } + } + } + } + } + } + } + + + } + + private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) + { + OpenProperties(); + } + + private void deleteToolStripMenuItem_Click(object sender, EventArgs e) + { + DeleteContact(); + } + + void DeleteContact() + { + if (treeView1.SelectedNode != null) + { + foreach (AddressBookContactList ContactList in AddressBookObjects) + { + if (ContactList.AttachedNode == treeView1.SelectedNode.Text) + { + foreach (AddressBookContact Contact in ContactList.Contacts) + { + if ((Contact.FirstName + " " + Contact.MiddleName + " " + Contact.LastName) == contactsView.FocusedItem.Text) + { + ContactList.Contacts.Remove(Contact); + } + } + } + } + } + } + + private void toolDelete_Click(object sender, EventArgs e) + { + DeleteContact(); + } + + private void newContactToolStripMenuItem1_Click(object sender, EventArgs e) + { + NewContact(); + } + + private void newFolderToolStripMenuItem1_Click(object sender, EventArgs e) + { + NewFolder(); + } + + private void toolbarToolStripMenuItem_Click(object sender, EventArgs e) + { + toolbar.Visible = toolbarToolStripMenuItem.Checked; + } + + private void foldersToolStripMenuItem_Click(object sender, EventArgs e) + { + treeView1.Visible = foldersToolStripMenuItem.Checked; + } + + private void exitToolStripMenuItem_Click(object sender, EventArgs e) + { + ((Form)this.TopLevelControl).Close(); + } + } + + public class AddressBookContact + { + public string FirstName; + public string MiddleName; + public string LastName; + public List Emails = new List(); + } + + public class AddressBookContactList + { + public string AttachedNode; + public List Contacts = new List(); + } +} diff --git a/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.resx b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.resx new file mode 100644 index 0000000..e1c367e --- /dev/null +++ b/TimeHACK.Main/OS/Win98/Win98Apps/AddressBook/WinClassicAddressBook.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 118, 17 + + \ No newline at end of file diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index bda94fd..ce6cc95 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -248,10 +248,10 @@ Win95.cs - + UserControl - + FRMWinClassicAddressBookNewContact.cs @@ -260,16 +260,16 @@ WebChat1998.cs - + UserControl - + FRMWinClassicAddressBookNewFolder.cs - + UserControl - + WinClassicAddressBook.cs @@ -391,7 +391,7 @@ Win95.cs Designer - + FRMWinClassicAddressBookNewContact.cs @@ -399,10 +399,10 @@ ResXFileCodeGenerator WebChat19981.Designer.cs - + FRMWinClassicAddressBookNewFolder.cs - + WinClassicAddressBook.cs -- cgit v1.2.3