Esempio n. 1
0
        public static void GenerateGymGPX()
        {
            decimal[] lats  = new decimal[gyms.Count];
            decimal[] lons  = new decimal[gyms.Count];
            string[]  files = new string[gyms.Count];

            for (int c = 0; c < gyms.Count; c++)
            {
                lats[c]  = gyms[c].latitude;
                lons[c]  = gyms[c].longitude;
                files[c] = gyms[c].filename;
            }

            GPX.SaveGymGPXFiles(lats, lons, files);
        }
Esempio n. 2
0
        private void pokeList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (e.Clicks == 2)
            {
                var list = (ListBox)sender;
                if (list.SelectedIndex >= 0)
                {
                    Spawn spawn = (Spawn)list.SelectedItem;

                    try
                    {
                        GPX.SavePokemonFile(spawn.latitude, spawn.longitude);
                    }
                    catch { }
                }
            }
        }