aboutsummaryrefslogtreecommitdiff
path: root/PortEngine
diff options
context:
space:
mode:
authorTheEdgeNK <trey6979@gmail.com>2018-09-01 01:27:41 -0400
committerTheEdgeNK <trey6979@gmail.com>2018-09-01 01:27:41 -0400
commit269f6d0f4cbf556da4e4154143aa85fbf0448429 (patch)
treee73ea6f5189fb91fe67ae23648ed5a23a4e93110 /PortEngine
parentfb69cc80fc9e22549915f2a0905323f145e23374 (diff)
downloadProject-Silicon-269f6d0f4cbf556da4e4154143aa85fbf0448429.tar.gz
Project-Silicon-269f6d0f4cbf556da4e4154143aa85fbf0448429.tar.bz2
Project-Silicon-269f6d0f4cbf556da4e4154143aa85fbf0448429.zip
hybrid config mode // removed feature
Diffstat (limited to 'PortEngine')
-rw-r--r--PortEngine/ChatAPI.cs3
-rw-r--r--PortEngine/GeneralAPI.cs2
-rw-r--r--PortEngine/PortEngine.csproj13
-rw-r--r--PortEngine/PortsTerminalAPI.cs2
-rw-r--r--PortEngine/TerminalAPI.cs12
-rw-r--r--PortEngine/packages.config4
6 files changed, 24 insertions, 12 deletions
diff --git a/PortEngine/ChatAPI.cs b/PortEngine/ChatAPI.cs
index 9c06bfd..cfbc7cf 100644
--- a/PortEngine/ChatAPI.cs
+++ b/PortEngine/ChatAPI.cs
@@ -19,6 +19,7 @@
**************************************************************************/
using System;
using System.Collections.Generic;
+using System.Timers;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -29,8 +30,10 @@ namespace PortEngine
{
public class ChatAPI
{
+
public static void SendMessage(TextBox txtPending, TextBox txtDestination)
{
+;
txtDestination.AppendText("<" + Properties.Settings.Default.userDisplayName + "> " + txtPending.Text + Environment.NewLine);
txtPending.Clear();
}
diff --git a/PortEngine/GeneralAPI.cs b/PortEngine/GeneralAPI.cs
index c38ccbd..6ba9769 100644
--- a/PortEngine/GeneralAPI.cs
+++ b/PortEngine/GeneralAPI.cs
@@ -29,7 +29,7 @@ namespace PortEngine
public class GeneralAPI
{
- public static void setNameOnAppLauncher(Label txtUserDestination)
+ public static void appendUsername(Label txtUserDestination)
{
txtUserDestination.Text = Properties.Settings.Default.userDisplayName;
}
diff --git a/PortEngine/PortEngine.csproj b/PortEngine/PortEngine.csproj
index 1485897..6c9c7b9 100644
--- a/PortEngine/PortEngine.csproj
+++ b/PortEngine/PortEngine.csproj
@@ -29,7 +29,16 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Hybrid|AnyCPU'">
+ <OutputPath>bin\Hybrid\</OutputPath>
+ </PropertyGroup>
<ItemGroup>
+ <Reference Include="ConsoleControl, Version=1.1.0.0, Culture=neutral, PublicKeyToken=7edd23586f5e297f, processorArchitecture=MSIL">
+ <HintPath>..\packages\ConsoleControl.1.1.0.0\lib\net40\ConsoleControl.dll</HintPath>
+ </Reference>
+ <Reference Include="ConsoleControlAPI, Version=1.1.0.0, Culture=neutral, PublicKeyToken=7c86b8a36b9c33e2, processorArchitecture=MSIL">
+ <HintPath>..\packages\ConsoleControl.1.1.0.0\lib\net40\ConsoleControlAPI.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
@@ -113,10 +122,14 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
+ <None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
+ <ItemGroup>
+ <WCFMetadata Include="Connected Services\" />
+ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> \ No newline at end of file
diff --git a/PortEngine/PortsTerminalAPI.cs b/PortEngine/PortsTerminalAPI.cs
index c751b85..b41bd2c 100644
--- a/PortEngine/PortsTerminalAPI.cs
+++ b/PortEngine/PortsTerminalAPI.cs
@@ -44,7 +44,7 @@ namespace PortEngine
default:
if (pendingCommand.StartsWith("changeusername --"))
{
- Console.WriteLine("Username changed from " + Properties.Settings.Default.userDisplayName + " to " + pendingCommand.Substring(17));
+ Console.WriteLine("Changed username.");
Properties.Settings.Default.userDisplayName = pendingCommand.Substring(17);
break;
}
diff --git a/PortEngine/TerminalAPI.cs b/PortEngine/TerminalAPI.cs
index d7ec2ba..8bbabdd 100644
--- a/PortEngine/TerminalAPI.cs
+++ b/PortEngine/TerminalAPI.cs
@@ -39,7 +39,7 @@ namespace PortEngine
switch (txtConsoleInput.Text.ToLower())
{
case "help":
- txtConsoleOutput.AppendText("help - lists the commands\r\ntest - displays a test message\r\nclear - clears the terminal\r\nchangeusername - changes your username for use with the Chatter application\r\n example: changeusername --TheBestUser" + Environment.NewLine);
+ txtConsoleOutput.AppendText("help - lists the commands\r\ntest - displays a test message\r\nclear - clears the terminal\r\n" + Environment.NewLine);
break;
case "clear":
txtConsoleOutput.Clear();
@@ -49,15 +49,7 @@ namespace PortEngine
txtConsoleOutput.AppendText("This is a test!\r\nof the EBS!" + Environment.NewLine);
break;
default:
- if (txtConsoleInput.Text.StartsWith("changeusername --"))
- {
- txtConsoleOutput.AppendText("You have changed your username to " + txtConsoleInput.Text.Substring(17));
- Properties.Settings.Default.userDisplayName = txtConsoleInput.Text.Substring(17);
- }
- else
- {
- txtConsoleOutput.AppendText("Bad command. Reference the command list for commands that exist." + Environment.NewLine);
- }
+ txtConsoleOutput.AppendText("Bad command. Reference the command list for commands that exist." + Environment.NewLine);
break;
}
diff --git a/PortEngine/packages.config b/PortEngine/packages.config
new file mode 100644
index 0000000..9323aa6
--- /dev/null
+++ b/PortEngine/packages.config
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="ConsoleControl" version="1.1.0.0" targetFramework="net461" />
+</packages> \ No newline at end of file