Add stop event

Brian [2016-08-18 16:19:30]
Add stop event
Filename
PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
PokemonGo.RocketBot.Window/Forms/MainForm.cs
diff --git a/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs b/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
index e28a299..a0e2d24 100644
--- a/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
+++ b/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
@@ -43,7 +43,7 @@ namespace PokemonGo.RocketBot.Logic.Utils
             {
                 return Encoding.GetEncoding(charsetName);
             }
-            catch (ArgumentException ex)
+            catch (ArgumentException)
             {
                 /*
                 throw new UnknownEncodingException(
diff --git a/PokemonGo.RocketBot.Window/Forms/MainForm.cs b/PokemonGo.RocketBot.Window/Forms/MainForm.cs
index 7bea677..19be5ff 100644
--- a/PokemonGo.RocketBot.Window/Forms/MainForm.cs
+++ b/PokemonGo.RocketBot.Window/Forms/MainForm.cs
@@ -78,7 +78,7 @@ namespace PokemonGo.RocketBot.Window.Forms
             //Everything is anonymous
             Analytics.Initialize("UzL1tnZa9Yw2qcJWRIbcwGFmWGuovXez");
             Analytics.Client.Identify(MachineIdHelper.GetMachineId(), new Traits());
-            Analytics.Client.Track(MachineIdHelper.GetMachineId(), "App start");
+            Analytics.Client.Track(MachineIdHelper.GetMachineId(), "App started");

             InitializeBot();
             InitializePokemonForm();
@@ -445,6 +445,7 @@ namespace PokemonGo.RocketBot.Window.Forms

         private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
         {
+            Analytics.Client.Track(MachineIdHelper.GetMachineId(), "App stopped");
             Environment.Exit(0);
         }
You may download the files in Public Git.