aboutsummaryrefslogtreecommitdiff
path: root/Project Ports
diff options
context:
space:
mode:
Diffstat (limited to 'Project Ports')
-rw-r--r--Project Ports/AboutPorts.Designer.cs62
-rw-r--r--Project Ports/AboutPorts.cs20
-rw-r--r--Project Ports/AboutPorts.resx138
-rw-r--r--Project Ports/Desktop.Designer.cs15
-rw-r--r--Project Ports/Desktop.cs12
-rw-r--r--Project Ports/MainMenu.Designer.cs23
-rw-r--r--Project Ports/MainMenu.cs9
-rw-r--r--Project Ports/Programs/ChatApp.Designer.cs111
-rw-r--r--Project Ports/Programs/ChatApp.cs27
-rw-r--r--Project Ports/Programs/ChatApp.resx120
-rw-r--r--Project Ports/Programs/Settings.Designer.cs4
-rw-r--r--Project Ports/Programs/TestWindow.Designer.cs25
-rw-r--r--Project Ports/Programs/TestWindow.cs1
-rw-r--r--Project Ports/Project Ports.csproj18
14 files changed, 543 insertions, 42 deletions
diff --git a/Project Ports/AboutPorts.Designer.cs b/Project Ports/AboutPorts.Designer.cs
new file mode 100644
index 0000000..bbff8ff
--- /dev/null
+++ b/Project Ports/AboutPorts.Designer.cs
@@ -0,0 +1,62 @@
+namespace Project_Ports
+{
+ partial class AboutPorts
+ {
+ /// <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()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutPorts));
+ this.richTextBox1 = new System.Windows.Forms.RichTextBox();
+ this.SuspendLayout();
+ //
+ // richTextBox1
+ //
+ this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.richTextBox1.Enabled = false;
+ this.richTextBox1.Location = new System.Drawing.Point(3, 3);
+ this.richTextBox1.Name = "richTextBox1";
+ this.richTextBox1.Size = new System.Drawing.Size(529, 551);
+ this.richTextBox1.TabIndex = 1;
+ this.richTextBox1.Text = resources.GetString("richTextBox1.Text");
+ //
+ // AboutPorts
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.richTextBox1);
+ this.Name = "AboutPorts";
+ this.Size = new System.Drawing.Size(535, 557);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.RichTextBox richTextBox1;
+ }
+}
diff --git a/Project Ports/AboutPorts.cs b/Project Ports/AboutPorts.cs
new file mode 100644
index 0000000..c730c4c
--- /dev/null
+++ b/Project Ports/AboutPorts.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Project_Ports
+{
+ public partial class AboutPorts : UserControl
+ {
+ public AboutPorts()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Project Ports/AboutPorts.resx b/Project Ports/AboutPorts.resx
new file mode 100644
index 0000000..8fc207b
--- /dev/null
+++ b/Project Ports/AboutPorts.resx
@@ -0,0 +1,138 @@
+<?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>
+ <data name="richTextBox1.Text" xml:space="preserve">
+ <value>
+ Project Ports
+ Copyright (C) 2018 UniverseDG
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;</value>
+ </data>
+</root> \ No newline at end of file
diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs
index 80cf84a..e004e3a 100644
--- a/Project Ports/Desktop.Designer.cs
+++ b/Project Ports/Desktop.Designer.cs
@@ -39,6 +39,7 @@
this.shutdownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ltime = new System.Windows.Forms.Label();
this.dclock = new System.Windows.Forms.Timer(this.components);
+ this.chatterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.appMenu.SuspendLayout();
this.SuspendLayout();
//
@@ -70,7 +71,8 @@
//
this.programsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.terminalToolStripMenuItem,
- this.testWindowToolStripMenuItem});
+ this.testWindowToolStripMenuItem,
+ this.chatterToolStripMenuItem});
this.programsToolStripMenuItem.Name = "programsToolStripMenuItem";
this.programsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.programsToolStripMenuItem.Text = "Programs";
@@ -94,6 +96,7 @@
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.settingsToolStripMenuItem.Text = "Settings";
+ this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);
//
// toolStripSeparator1
//
@@ -113,7 +116,7 @@
this.ltime.AutoSize = true;
this.ltime.BackColor = System.Drawing.Color.Silver;
this.ltime.ForeColor = System.Drawing.Color.Black;
- this.ltime.Location = new System.Drawing.Point(742, 7);
+ this.ltime.Location = new System.Drawing.Point(742, 6);
this.ltime.Name = "ltime";
this.ltime.Size = new System.Drawing.Size(53, 13);
this.ltime.TabIndex = 1;
@@ -124,6 +127,13 @@
//
this.dclock.Tick += new System.EventHandler(this.dclock_Tick);
//
+ // chatterToolStripMenuItem
+ //
+ this.chatterToolStripMenuItem.Name = "chatterToolStripMenuItem";
+ this.chatterToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
+ this.chatterToolStripMenuItem.Text = "Chatter";
+ this.chatterToolStripMenuItem.Click += new System.EventHandler(this.chatterToolStripMenuItem_Click);
+ //
// Desktop
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -158,5 +168,6 @@
private System.Windows.Forms.ToolStripMenuItem terminalToolStripMenuItem;
private System.Windows.Forms.Timer dclock;
private System.Windows.Forms.ToolStripMenuItem testWindowToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem chatterToolStripMenuItem;
}
} \ No newline at end of file
diff --git a/Project Ports/Desktop.cs b/Project Ports/Desktop.cs
index 665674f..9beb621 100644
--- a/Project Ports/Desktop.cs
+++ b/Project Ports/Desktop.cs
@@ -49,7 +49,9 @@ namespace Project_Ports
private void Desktop_Load(object sender, EventArgs e)
{
+ #if DEBUG
MessageBox.Show("Welcome to the Project Ports Desktop!");
+ #endif
dclock.Start();
}
@@ -73,5 +75,15 @@ namespace Project_Ports
{
wm.createWindow(new TestWindow(), "TestWindow");
}
+
+ private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ wm.createWindow(new Settings(), "System Settings");
+ }
+
+ private void chatterToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ wm.createWindow(new ChatApp(), "Chatter");
+ }
}
}
diff --git a/Project Ports/MainMenu.Designer.cs b/Project Ports/MainMenu.Designer.cs
index 64fe6fb..5ebcfe9 100644
--- a/Project Ports/MainMenu.Designer.cs
+++ b/Project Ports/MainMenu.Designer.cs
@@ -33,7 +33,7 @@
this.btnExit = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.btnAbout = new System.Windows.Forms.Button();
- this.webBrowser1 = new System.Windows.Forms.WebBrowser();
+ this.wbPortsNews = new System.Windows.Forms.WebBrowser();
this.label3 = new System.Windows.Forms.Label();
this.btnDebugMode = new System.Windows.Forms.Button();
this.SuspendLayout();
@@ -100,17 +100,18 @@
this.btnAbout.UseVisualStyleBackColor = true;
this.btnAbout.Click += new System.EventHandler(this.btnAbout_Click);
//
- // webBrowser1
+ // wbPortsNews
//
- this.webBrowser1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ this.wbPortsNews.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.webBrowser1.Location = new System.Drawing.Point(300, 32);
- this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
- this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.Size = new System.Drawing.Size(876, 508);
- this.webBrowser1.TabIndex = 5;
- this.webBrowser1.Url = new System.Uri("https://aleecorp.github.io/project-ports", System.UriKind.Absolute);
+ this.wbPortsNews.Location = new System.Drawing.Point(300, 32);
+ this.wbPortsNews.MinimumSize = new System.Drawing.Size(20, 20);
+ this.wbPortsNews.Name = "wbPortsNews";
+ this.wbPortsNews.ScrollBarsEnabled = false;
+ this.wbPortsNews.Size = new System.Drawing.Size(876, 508);
+ this.wbPortsNews.TabIndex = 5;
+ this.wbPortsNews.Url = new System.Uri("http://universedevgroup.net/ports.html", System.UriKind.Absolute);
//
// label3
//
@@ -145,7 +146,7 @@
this.ClientSize = new System.Drawing.Size(1235, 704);
this.Controls.Add(this.btnDebugMode);
this.Controls.Add(this.label3);
- this.Controls.Add(this.webBrowser1);
+ this.Controls.Add(this.wbPortsNews);
this.Controls.Add(this.btnAbout);
this.Controls.Add(this.label2);
this.Controls.Add(this.btnExit);
@@ -168,7 +169,7 @@
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btnAbout;
- private System.Windows.Forms.WebBrowser webBrowser1;
+ private System.Windows.Forms.WebBrowser wbPortsNews;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button btnDebugMode;
}
diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs
index 17f1bff..fe3b60f 100644
--- a/Project Ports/MainMenu.cs
+++ b/Project Ports/MainMenu.cs
@@ -1,7 +1,7 @@
/************************************************************************
*
* Project Ports
- * Copyright (C) 2018 AleeCorp
+ * Copyright (C) 2018 UniverseDG
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -26,11 +26,15 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using PortEngine;
namespace Project_Ports
{
+
public partial class MainMenu : Form
{
+ WindowManager wm = new WindowManager();
+
public MainMenu()
{
InitializeComponent();
@@ -49,8 +53,7 @@ namespace Project_Ports
private void btnAbout_Click(object sender, EventArgs e)
{
- About aboutForm = new About();
- aboutForm.Show();
+ wm.createWindow(new AboutPorts(), "About Ports");
}
private void MainMenu_Load(object sender, EventArgs e)
diff --git a/Project Ports/Programs/ChatApp.Designer.cs b/Project Ports/Programs/ChatApp.Designer.cs
new file mode 100644
index 0000000..c2200c1
--- /dev/null
+++ b/Project Ports/Programs/ChatApp.Designer.cs
@@ -0,0 +1,111 @@
+namespace Project_Ports
+{
+ partial class ChatApp
+ {
+ /// <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.txtSentMessages = new System.Windows.Forms.TextBox();
+ this.txtMsgContents = new System.Windows.Forms.TextBox();
+ this.listBox1 = new System.Windows.Forms.ListBox();
+ this.btnSendMSG = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // txtSentMessages
+ //
+ this.txtSentMessages.BackColor = System.Drawing.SystemColors.InfoText;
+ this.txtSentMessages.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.txtSentMessages.Font = new System.Drawing.Font("Lucida Console", 8.25F);
+ this.txtSentMessages.ForeColor = System.Drawing.SystemColors.Control;
+ this.txtSentMessages.Location = new System.Drawing.Point(136, 3);
+ this.txtSentMessages.Multiline = true;
+ this.txtSentMessages.Name = "txtSentMessages";
+ this.txtSentMessages.ReadOnly = true;
+ this.txtSentMessages.Size = new System.Drawing.Size(439, 187);
+ this.txtSentMessages.TabIndex = 0;
+ //
+ // txtMsgContents
+ //
+ this.txtMsgContents.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
+ this.txtMsgContents.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.txtMsgContents.Font = new System.Drawing.Font("Lucida Console", 8.25F);
+ this.txtMsgContents.ForeColor = System.Drawing.SystemColors.ControlLight;
+ this.txtMsgContents.Location = new System.Drawing.Point(136, 196);
+ this.txtMsgContents.Name = "txtMsgContents";
+ this.txtMsgContents.Size = new System.Drawing.Size(384, 18);
+ this.txtMsgContents.TabIndex = 1;
+ //
+ // listBox1
+ //
+ this.listBox1.BackColor = System.Drawing.SystemColors.WindowText;
+ this.listBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.listBox1.Font = new System.Drawing.Font("Lucida Console", 10F);
+ this.listBox1.ForeColor = System.Drawing.SystemColors.Control;
+ this.listBox1.FormattingEnabled = true;
+ this.listBox1.Items.AddRange(new object[] {
+ "#test"});
+ this.listBox1.Location = new System.Drawing.Point(4, 4);
+ this.listBox1.Name = "listBox1";
+ this.listBox1.Size = new System.Drawing.Size(126, 210);
+ this.listBox1.TabIndex = 2;
+ //
+ // btnSendMSG
+ //
+ this.btnSendMSG.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnSendMSG.Font = new System.Drawing.Font("Lucida Console", 8F);
+ this.btnSendMSG.ForeColor = System.Drawing.SystemColors.ButtonFace;
+ this.btnSendMSG.Location = new System.Drawing.Point(527, 197);
+ this.btnSendMSG.Name = "btnSendMSG";
+ this.btnSendMSG.Size = new System.Drawing.Size(48, 19);
+ this.btnSendMSG.TabIndex = 3;
+ this.btnSendMSG.Text = "Send";
+ this.btnSendMSG.UseVisualStyleBackColor = true;
+ this.btnSendMSG.Click += new System.EventHandler(this.btnSendMSG_Click);
+ //
+ // ChatApp
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.SystemColors.ControlText;
+ this.Controls.Add(this.btnSendMSG);
+ this.Controls.Add(this.listBox1);
+ this.Controls.Add(this.txtMsgContents);
+ this.Controls.Add(this.txtSentMessages);
+ this.Name = "ChatApp";
+ this.Size = new System.Drawing.Size(578, 219);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TextBox txtSentMessages;
+ private System.Windows.Forms.TextBox txtMsgContents;
+ private System.Windows.Forms.ListBox listBox1;
+ private System.Windows.Forms.Button btnSendMSG;
+ }
+}
diff --git a/Project Ports/Programs/ChatApp.cs b/Project Ports/Programs/ChatApp.cs
new file mode 100644
index 0000000..593fa17
--- /dev/null
+++ b/Project Ports/Programs/ChatApp.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;
+using PortEngine;
+
+namespace Project_Ports
+{
+ public partial class ChatApp : UserControl
+ {
+
+ public ChatApp()
+ {
+ InitializeComponent();
+ }
+
+ private void btnSendMSG_Click(object sender, EventArgs e)
+ {
+ PortEngine.ChatAPI.SendMessage(txtMsgContents, txtSentMessages);
+ }
+ }
+}
diff --git a/Project Ports/Programs/ChatApp.resx b/Project Ports/Programs/ChatApp.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Project Ports/Programs/ChatApp.resx
@@ -0,0 +1,120 @@
+<?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/Project Ports/Programs/Settings.Designer.cs b/Project Ports/Programs/Settings.Designer.cs
index 6ebbbf9..714ef48 100644
--- a/Project Ports/Programs/Settings.Designer.cs
+++ b/Project Ports/Programs/Settings.Designer.cs
@@ -46,7 +46,7 @@
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label1.Location = new System.Drawing.Point(251, 19);
+ this.label1.Location = new System.Drawing.Point(10, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(107, 32);
this.label1.TabIndex = 1;
@@ -55,7 +55,7 @@
// label2
//
this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(30, 149);
+ this.label2.Location = new System.Drawing.Point(31, 140);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(46, 13);
this.label2.TabIndex = 2;
diff --git a/Project Ports/Programs/TestWindow.Designer.cs b/Project Ports/Programs/TestWindow.Designer.cs
index ff91e5a..bb99823 100644
--- a/Project Ports/Programs/TestWindow.Designer.cs
+++ b/Project Ports/Programs/TestWindow.Designer.cs
@@ -28,42 +28,19 @@
/// </summary>
private void InitializeComponent()
{
- this.button1 = new System.Windows.Forms.Button();
- this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.SuspendLayout();
//
- // button1
- //
- this.button1.Location = new System.Drawing.Point(24, 35);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "button1";
- this.button1.UseVisualStyleBackColor = true;
- //
- // progressBar1
- //
- this.progressBar1.Location = new System.Drawing.Point(24, 77);
- this.progressBar1.Name = "progressBar1";
- this.progressBar1.Size = new System.Drawing.Size(100, 23);
- this.progressBar1.TabIndex = 1;
- //
// TestWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(443, 341);
- this.Controls.Add(this.progressBar1);
- this.Controls.Add(this.button1);
this.Name = "TestWindow";
+ this.Size = new System.Drawing.Size(443, 341);
this.Load += new System.EventHandler(this.TestWindow_Load);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.ProgressBar progressBar1;
}
}
diff --git a/Project Ports/Programs/TestWindow.cs b/Project Ports/Programs/TestWindow.cs
index 8de01ec..4f27de8 100644
--- a/Project Ports/Programs/TestWindow.cs
+++ b/Project Ports/Programs/TestWindow.cs
@@ -22,5 +22,6 @@ namespace Project_Ports
{
WindowManager wm = new WindowManager();
}
+
}
}
diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj
index c78ebb4..ee43be4 100644
--- a/Project Ports/Project Ports.csproj
+++ b/Project Ports/Project Ports.csproj
@@ -51,6 +51,12 @@
<Compile Include="About.Designer.cs">
<DependentUpon>About.cs</DependentUpon>
</Compile>
+ <Compile Include="AboutPorts.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="AboutPorts.Designer.cs">
+ <DependentUpon>AboutPorts.cs</DependentUpon>
+ </Compile>
<Compile Include="DebugMode.cs">
<SubType>Form</SubType>
</Compile>
@@ -70,6 +76,12 @@
<DependentUpon>MainMenu.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
+ <Compile Include="Programs\ChatApp.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="Programs\ChatApp.Designer.cs">
+ <DependentUpon>ChatApp.cs</DependentUpon>
+ </Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
@@ -97,6 +109,9 @@
<EmbeddedResource Include="About.resx">
<DependentUpon>About.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="AboutPorts.resx">
+ <DependentUpon>AboutPorts.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="DebugMode.resx">
<DependentUpon>DebugMode.cs</DependentUpon>
</EmbeddedResource>
@@ -106,6 +121,9 @@
<EmbeddedResource Include="MainMenu.resx">
<DependentUpon>MainMenu.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="Programs\ChatApp.resx">
+ <DependentUpon>ChatApp.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>