Exemple #1
0
        private void ToGeoDataComplete(object sender, DownloadDataCompletedEventArgs e, Aircraft aircraft)
        {
            var data     = e.Result;
            var asString = Encoding.UTF8.GetString(data);
            var res      = JObject.Parse(asString);

            //Console.WriteLine($"To {res}");
            ChangeDestination(aircraft, (float)res["longt"], (float)res["latt"]);
            FileHandler.AddLocation(aircraft.From, (float)res["longt"], (float)res["latt"]);
            //MapController.DrawDestinationLine(aircraft);
        }