aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYour Name <you@example.com>2019-01-16 03:19:16 +0900
committerYour Name <you@example.com>2019-01-16 03:19:16 +0900
commit21899ef34d2a68ad2f67103322fadc27cc3cef5e (patch)
tree623e864cb68f55390ee7cd68acb2a598950a6542
parent8652f0cbfd3ca93daf0f2c9fefd2bec4a76763ed (diff)
downloadwf-clock-21899ef34d2a68ad2f67103322fadc27cc3cef5e.tar.gz
2019-01-152019-01-15
-rw-r--r--WarframeClock/Program.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/WarframeClock/Program.cs b/WarframeClock/Program.cs
index edf7dea..1e9c658 100644
--- a/WarframeClock/Program.cs
+++ b/WarframeClock/Program.cs
@@ -9,6 +9,7 @@ namespace WarframeClock
class Program
{
private static bool UseWorldStatePhp = false;
+ private static string VersionString = "Warframe Clock Overlay 2019-01-15";
public class WorldStateDataStruct
{
@@ -16,7 +17,7 @@ namespace WarframeClock
public string CetusExpiryString()
{
- var currentTime = GetCurrentTime();
+ double currentTime = GetCurrentTime();
double cetusLen = 8998.8748;
double cetusDayLen = 8248.9686 - 2249.7187;
double cetusBegin = 1509371722 + 2249.7187;
@@ -83,11 +84,12 @@ namespace WarframeClock
Icon = Properties.Resources.TrayIcon
};
- iconMenu.MenuItems.Add("Quit", (_, __) =>
+ iconMenu.MenuItems.Add(new MenuItem(VersionString) { Enabled = false });
+ iconMenu.MenuItems.Add(new MenuItem("Quit", (_, __) =>
{
icon.Dispose();
Environment.Exit(0);
- });
+ }));
icon.Visible = true;
Application.Run();