From d092383e4e04c505c94f31be84aaf935f700fc6b Mon Sep 17 00:00:00 2001 From: TheEdgeNK Date: Mon, 27 Aug 2018 16:58:32 -0400 Subject: Allows user to change username and have it show up on the new app launcher --- PortEngine/GeneralAPI.cs | 19 +++++++++++++++++++ PortEngine/PortEngine.csproj | 1 + PortEngine/QuantumAPI/QuantumAPI.cs | 1 + 3 files changed, 21 insertions(+) create mode 100644 PortEngine/GeneralAPI.cs (limited to 'PortEngine') diff --git a/PortEngine/GeneralAPI.cs b/PortEngine/GeneralAPI.cs new file mode 100644 index 0000000..11af9e5 --- /dev/null +++ b/PortEngine/GeneralAPI.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PortEngine +{ + public class GeneralAPI + { + + public static void setNameOnAppLauncher(Label txtUserDestination) + { + txtUserDestination.Text = Properties.Settings.Default.userDisplayName; + } + + } +} diff --git a/PortEngine/PortEngine.csproj b/PortEngine/PortEngine.csproj index da69b4b..b4c8ef8 100644 --- a/PortEngine/PortEngine.csproj +++ b/PortEngine/PortEngine.csproj @@ -49,6 +49,7 @@ EarnSite.cs + UserControl diff --git a/PortEngine/QuantumAPI/QuantumAPI.cs b/PortEngine/QuantumAPI/QuantumAPI.cs index d10f87d..f103255 100644 --- a/PortEngine/QuantumAPI/QuantumAPI.cs +++ b/PortEngine/QuantumAPI/QuantumAPI.cs @@ -10,6 +10,7 @@ namespace PortEngine { public class QuantumnetAPI { + private static void loadSite(UserControl site, Panel pnlSiteArea) { pnlSiteArea.Controls.Clear(); -- cgit v1.2.3