Skip to content
Snippets Groups Projects
Commit 63869f05 authored by baletiballo's avatar baletiballo
Browse files

Begin refactoring

parent 99d77bde
No related branches found
No related tags found
No related merge requests found
Pipeline #6478 passed
...@@ -43,6 +43,44 @@ public static class CommunicationEvents ...@@ -43,6 +43,44 @@ public static class CommunicationEvents
public static int ToolID_new; public static int ToolID_new;
public static int ToolID_selected;//Script public static int ToolID_selected;//Script
/*
* Put all of the data about a Server into one class
*/
class KnownServer
{
public string IP;
public ServerStatus currentStatus = ServerStatus.offline;
public bool statusKnown = false;
public enum ServerStatus
{
offline,
online,
checking,
NoNetworkAddress
}
public void UpdateStatus()
{
}
}
//List of Known Servers
public enum KnownServers
{
last,
newIP,
slot1,
slot2,
slot3,
slot4,
slot5,
selecIP
}
//Enum.GetNames(typeof(KnownServers)).Length; //Number of known Server slots, to be able to add more later
/* /*
* will be loaded from other config file * will be loaded from other config file
*/ */
...@@ -53,7 +91,7 @@ public static class CommunicationEvents ...@@ -53,7 +91,7 @@ public static class CommunicationEvents
public static string IPslot3 = "- not loaded"; public static string IPslot3 = "- not loaded";
public static string IPslot4 = "- GO TO -> 'Options'"; public static string IPslot4 = "- GO TO -> 'Options'";
public static string IPslot5 = "- -> 'Reset Options'"; public static string IPslot5 = "- -> 'Reset Options'";
public static string selecIP = "- -> PRESS: 'Reset Configurations'";//"GO TO -> 'Options'\n-> 'Reset Options'\nPRESS: \n'Reset Configurations'"; public static string selecIP = "- -> PRESS: 'Reset Configurations'";
//------ //------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment