Esempio n. 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Grave g = e.Parameter as Grave;

            if (g == null)
            {
                DeceasedPerson.Text = "404 Not Found";
                Gender.Text         = "";
                Cemetery.Text       = "";
                LastAddress.Text    = "";
                DOB.Text            = "";
                DOD.Text            = "";
                InGrave.Text        = "";
            }
            else
            {
                // if g is not empty, print the details
                DeceasedPerson.Text = "Deceased Person: " + g.Name;
                Gender.Text         = "Gender: " + g.Gender;
                Cemetery.Text       = "Buried in: " + g.Cemetery + ", row " + g.RowID + ", number: " + g.GraveNumber;
                LastAddress.Text    = "Last Address: " + "\n" + g.Address;
                DOB.Text            = "Born on: " + g.DOB.Date.ToString("dd/MM/yyyy");
                DOD.Text            = "Died on: " + g.DOD.Date.ToString("dd/MM/yyyy");
                InGrave.Text        = "Also in the grave: " + g.InGrave;
                //Setting the HTML content in the WebView control.
                MapWebView.NavigateToString(GeneratedHTML);
                lat = Convert.ToDouble(g.Latitude);
                lon = Convert.ToDouble(g.Longtitude);
            }
        }
Esempio n. 2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     MapWebView.Navigate(new Uri("https://www.google.com.ua/maps/place/АТБ-Маркет"));
 }