diff options
| author | lempamo <[email protected]> | 2017-07-02 17:54:32 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-02 17:54:32 -0400 |
| commit | 17ca0d0942c2a4e568349a74e87807eb00838666 (patch) | |
| tree | d77d29e319123092319cb88377a9da0d1da9cf4d /TimeHACK.Main/GlobalPrograms/AddressBook | |
| parent | 776adbafcbcccb4661589794a73933d518bbf4be (diff) | |
| download | histacom2-17ca0d0942c2a4e568349a74e87807eb00838666.tar.gz histacom2-17ca0d0942c2a4e568349a74e87807eb00838666.tar.bz2 histacom2-17ca0d0942c2a4e568349a74e87807eb00838666.zip | |
ALEX DONT FUCK THINGS UP AGAIN PLZ
Diffstat (limited to 'TimeHACK.Main/GlobalPrograms/AddressBook')
9 files changed, 0 insertions, 1463 deletions
diff --git a/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs b/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs deleted file mode 100644 index 4319d9e..0000000 --- a/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.Designer.cs +++ /dev/null @@ -1,227 +0,0 @@ -namespace TimeHACK.OS.Win95.Win95Apps -{ - partial class FRMWinClassicAddressBookNewContact - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.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:"; - // - // button2 - // - this.button2.Location = new System.Drawing.Point(13, 114); - this.button2.Name = "button2"; - 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/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.cs b/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.cs deleted file mode 100644 index fe75e83..0000000 --- a/TimeHACK.Main/GlobalPrograms/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/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.resx b/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewContact.resx +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Version 2.0 - - The primary goals of this format is to allow a simple XML format - that is mostly human readable. The generation and parsing of the - various data types are done through the TypeConverter classes - associated with the data types. - - Example: - - ... ado.net/XML headers & schema ... - <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">2.0</resheader> - <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> - <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> - <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> - <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - <value>[base64 mime encoded serialized .NET Framework object]</value> - </data> - <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> - <comment>This is a comment</comment> - </data> - - There are any number of "resheader" rows that contain simple - name/value pairs. - - Each data row contains a name, and value. The row also contains a - type or mimetype. Type corresponds to a .NET class that support - text/value conversion through the TypeConverter architecture. - Classes that don't support this are serialized and stored with the - mimetype set. - - The mimetype is used for serialized objects, and tells the - ResXResourceReader how to depersist the object. This is currently not - extensible. For a given mimetype the value must be set accordingly: - - Note - application/x-microsoft.net.object.binary.base64 is the format - that the ResXResourceWriter will generate, however the reader can - read any of the formats listed below. - - mimetype: application/x-microsoft.net.object.binary.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.soap.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Soap.SoapFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.bytearray.base64 - value : The object must be serialized into a byte array - : using a System.ComponentModel.TypeConverter - : and then encoded with base64 encoding. - --> - <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> - <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> - <xsd:element name="root" msdata:IsDataSet="true"> - <xsd:complexType> - <xsd:choice maxOccurs="unbounded"> - <xsd:element name="metadata"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" /> - </xsd:sequence> - <xsd:attribute name="name" use="required" type="xsd:string" /> - <xsd:attribute name="type" type="xsd:string" /> - <xsd:attribute name="mimetype" type="xsd:string" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="assembly"> - <xsd:complexType> - <xsd:attribute name="alias" type="xsd:string" /> - <xsd:attribute name="name" type="xsd:string" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="data"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> - <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> - <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="resheader"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" /> - </xsd:complexType> - </xsd:element> - </xsd:choice> - </xsd:complexType> - </xsd:element> - </xsd:schema> - <resheader name="resmimetype"> - <value>text/microsoft-resx</value> - </resheader> - <resheader name="version"> - <value>2.0</value> - </resheader> - <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> -</root>
\ No newline at end of file diff --git a/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs b/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs deleted file mode 100644 index c7efcd0..0000000 --- a/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.Designer.cs +++ /dev/null @@ -1,81 +0,0 @@ -namespace TimeHACK.OS.Win95.Win95Apps -{ - partial class FRMWinClassicAddressBookNewFolder - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.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/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.cs b/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.cs deleted file mode 100644 index 705fd0d..0000000 --- a/TimeHACK.Main/GlobalPrograms/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/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.resx b/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TimeHACK.Main/GlobalPrograms/AddressBook/FRMWinClassicAddressBookNewFolder.resx +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Version 2.0 - - The primary goals of this format is to allow a simple XML format - that is mostly human readable. The generation and parsing of the - various data types are done through the TypeConverter classes - associated with the data types. - - Example: - - ... ado.net/XML headers & schema ... - <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">2.0</resheader> - <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> - <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> - <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> - <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - <value>[base64 mime encoded serialized .NET Framework object]</value> - </data> - <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> - <comment>This is a comment</comment> - </data> - - There are any number of "resheader" rows that contain simple - name/value pairs. - - Each data row contains a name, and value. The row also contains a - type or mimetype. Type corresponds to a .NET class that support - text/value conversion through the TypeConverter architecture. - Classes that don't support this are serialized and stored with the - mimetype set. - - The mimetype is used for serialized objects, and tells the - ResXResourceReader how to depersist the object. This is currently not - extensible. For a given mimetype the value must be set accordingly: - - Note - application/x-microsoft.net.object.binary.base64 is the format - that the ResXResourceWriter will generate, however the reader can - read any of the formats listed below. - - mimetype: application/x-microsoft.net.object.binary.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.soap.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Soap.SoapFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.bytearray.base64 - value : The object must be serialized into a byte array - : using a System.ComponentModel.TypeConverter - : and then encoded with base64 encoding. - --> - <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> - <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> - <xsd:element name="root" msdata:IsDataSet="true"> - <xsd:complexType> - <xsd:choice maxOccurs="unbounded"> - <xsd:element name="metadata"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" /> - </xsd:sequence> - <xsd:attribute name="name" use="required" type="xsd:string" /> - <xsd:attribute name="type" type="xsd:string" /> - <xsd:attribute name="mimetype" type="xsd:string" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="assembly"> - <xsd:complexType> - <xsd:attribute name="alias" type="xsd:string" /> - <xsd:attribute name="name" type="xsd:string" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="data"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> - <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> - <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="resheader"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" /> - </xsd:complexType> - </xsd:element> - </xsd:choice> - </xsd:complexType> - </xsd:element> - </xsd:schema> - <resheader name="resmimetype"> - <value>text/microsoft-resx</value> - </resheader> - <resheader name="version"> - <value>2.0</value> - </resheader> - <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> -</root>
\ No newline at end of file diff --git a/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.Designer.cs b/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.Designer.cs deleted file mode 100644 index 41107e8..0000000 --- a/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.Designer.cs +++ /dev/null @@ -1,398 +0,0 @@ -namespace TimeHACK.OS.Win95.Win95Apps -{ - partial class WinClassicAddressBook - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - 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/GlobalPrograms/AddressBook/WinClassicAddressBook.cs b/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.cs deleted file mode 100644 index 24404bf..0000000 --- a/TimeHACK.Main/GlobalPrograms/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<AddressBookContactList> 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<AddressBookContactList> - { - 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<String> Emails = new List<String>(); - } - - public class AddressBookContactList - { - public String AttachedNode; - public List<AddressBookContact> Contacts = new List<AddressBookContact>(); - } -} diff --git a/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.resx b/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.resx deleted file mode 100644 index e1c367e..0000000 --- a/TimeHACK.Main/GlobalPrograms/AddressBook/WinClassicAddressBook.resx +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Version 2.0 - - The primary goals of this format is to allow a simple XML format - that is mostly human readable. The generation and parsing of the - various data types are done through the TypeConverter classes - associated with the data types. - - Example: - - ... ado.net/XML headers & schema ... - <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">2.0</resheader> - <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> - <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> - <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> - <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - <value>[base64 mime encoded serialized .NET Framework object]</value> - </data> - <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> - <comment>This is a comment</comment> - </data> - - There are any number of "resheader" rows that contain simple - name/value pairs. - - Each data row contains a name, and value. The row also contains a - type or mimetype. Type corresponds to a .NET class that support - text/value conversion through the TypeConverter architecture. - Classes that don't support this are serialized and stored with the - mimetype set. - - The mimetype is used for serialized objects, and tells the - ResXResourceReader how to depersist the object. This is currently not - extensible. For a given mimetype the value must be set accordingly: - - Note - application/x-microsoft.net.object.binary.base64 is the format - that the ResXResourceWriter will generate, however the reader can - read any of the formats listed below. - - mimetype: application/x-microsoft.net.object.binary.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.soap.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Soap.SoapFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.bytearray.base64 - value : The object must be serialized into a byte array - : using a System.ComponentModel.TypeConverter - : and then encoded with base64 encoding. - --> - <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> - <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> - <xsd:element name="root" msdata:IsDataSet="true"> - <xsd:complexType> - <xsd:choice maxOccurs="unbounded"> - <xsd:element name="metadata"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" /> - </xsd:sequence> - <xsd:attribute name="name" use="required" type="xsd:string" /> - <xsd:attribute name="type" type="xsd:string" /> - <xsd:attribute name="mimetype" type="xsd:string" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="assembly"> - <xsd:complexType> - <xsd:attribute name="alias" type="xsd:string" /> - <xsd:attribute name="name" type="xsd:string" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="data"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> - <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> - <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="resheader"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" /> - </xsd:complexType> - </xsd:element> - </xsd:choice> - </xsd:complexType> - </xsd:element> - </xsd:schema> - <resheader name="resmimetype"> - <value>text/microsoft-resx</value> - </resheader> - <resheader name="version"> - <value>2.0</value> - </resheader> - <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <metadata name="topmenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>17, 17</value> - </metadata> - <metadata name="newContext.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>118, 17</value> - </metadata> -</root>
\ No newline at end of file |
