public void TestDefaultCtor()
        {
            // set up
            var location = new Location
            {
                Name         = "Test Live Waypoint",
                Type         = LocationType.LiveWaypoint,
                InternetLink = "where-to-fly://xxx",
            };
            var page = new AddLiveWaypointPopupPage(location);

            // check
            Assert.IsNotNull(page.Content, "page content must have been set");
        }
Пример #2
0
 /// <summary>
 /// Shows "add live waypoint" dialog to edit live waypoint data.
 /// </summary>
 /// <param name="liveWaypoint">live waypoint</param>
 /// <returns>true when live waypoint should be added, false when not</returns>
 private static async Task <bool> ShowAddLiveWaypointDialog(Location liveWaypoint)
 {
     return(await AddLiveWaypointPopupPage.ShowAsync(liveWaypoint));
 }