private void MainForm_Load(object sender, EventArgs e) { Text = @"RocketBot v" + Application.ProductVersion; //User activity tracking, help us get more information to make RocketBot better //Everything is anonymous Analytics.Initialize("UzL1tnZa9Yw2qcJWRIbcwGFmWGuovXez"); Analytics.Client.Identify(MachineIdHelper.GetMachineId(), new Traits()); Analytics.Client.Track(MachineIdHelper.GetMachineId(), "App started"); speedLable.Parent = gMapControl1; showMoreCheckBox.Parent = gMapControl1; followTrainerCheckBox.Parent = gMapControl1; togglePrecalRoute.Parent = gMapControl1; InitializeBot(); InitializePokemonForm(); InitializeMap(); CheckVersion(); if (BoolNeedsSetup) { //startStopBotToolStripMenuItem.Enabled = false; Logger.Write("First time here? Go to settings to set your basic info."); GlobalSettings.Load(""); } }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { Analytics.Client.Track(MachineIdHelper.GetMachineId(), "App stopped"); Analytics.Dispose(); //Environment.Exit(0); }