mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 19:05:39 +02:00
Code cleanup
This commit is contained in:
@@ -60,6 +60,8 @@ internal class Globals
|
||||
public static int AppInstanceID = 0; // Kepp the instance ID
|
||||
public static bool AppForceIconReload = true; // Force main window icons reload
|
||||
|
||||
public static string[] DatabaseSendBuffer = new string[50]; // MySQL send buffer
|
||||
|
||||
public static bool StatusDatabase = false; // Historic db connection status
|
||||
public static bool StatusSRS = false; // Historic srs connection status
|
||||
public static bool StatusLotATC = false; // Historic lotatc connection status
|
||||
@@ -78,6 +80,9 @@ internal class Globals
|
||||
|
||||
public static CurrentMissionClass CurrentMission = new CurrentMissionClass(); // Actual mission information single ton
|
||||
|
||||
public static HardwareMonitorClass HardwareMonitor = new HardwareMonitorClass(); // Hardware monitor singleton
|
||||
public static HardwareMonitorClass HardwareMonitor = new HardwareMonitorClass(); // Hardware monitor singleton
|
||||
|
||||
public static DatabaseController DatabaseConnection = new DatabaseController(); // Main MySQL controller
|
||||
public static TCPController TCPServer = new TCPController(); // Main TCP controller
|
||||
}
|
||||
|
||||
|
||||
@@ -96,10 +96,13 @@ internal class PerunHelper
|
||||
}
|
||||
|
||||
// Gets build version
|
||||
public static string GetAppVersion(string strBeginning)
|
||||
public static string GetAppVersion(string strBeginning, string strEnding = "")
|
||||
{
|
||||
Globals.VersionPerun = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
return strBeginning + "v" + Globals.VersionPerun;
|
||||
#if DEBUG
|
||||
Globals.VersionPerun = Globals.VersionPerun + "(d)";
|
||||
#endif
|
||||
return strBeginning + "v" + Globals.VersionPerun + strEnding;
|
||||
}
|
||||
|
||||
public static int CheckVersions()
|
||||
|
||||
Reference in New Issue
Block a user