diff options
author | Your Name <you@example.com> | 2019-01-16 03:19:16 +0900 |
---|---|---|
committer | Your Name <you@example.com> | 2019-01-16 03:19:16 +0900 |
commit | 21899ef34d2a68ad2f67103322fadc27cc3cef5e (patch) | |
tree | 623e864cb68f55390ee7cd68acb2a598950a6542 | |
parent | 8652f0cbfd3ca93daf0f2c9fefd2bec4a76763ed (diff) | |
download | wf-clock-21899ef34d2a68ad2f67103322fadc27cc3cef5e.tar.gz |
2019-01-152019-01-15
-rw-r--r-- | WarframeClock/Program.cs | 8 |
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(); |