Ejemplo n.º 1
0
        /// <summary>
        /// Selects the bookmark and navigates to it in the associated <see cref="GeoView" />.
        /// </summary>
        /// <param name="bookmark">Bookmark to navigate to. Must be non-null with a valid viewpoint.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="bookmark"/> is <c>null</c>.</exception>
        private void SelectAndNavigateToBookmark(Bookmark bookmark)
        {
            if (bookmark.Viewpoint == null)
            {
                throw new ArgumentException("Bookmark viewpoint is null");
            }

            GeoView?.SetViewpointAsync(bookmark.Viewpoint);

            BookmarkSelected?.Invoke(this, bookmark);
        }
 private void OnBookmarkClicked(int position)
 {
     BookmarkSelected?.Invoke(this, _shadowList.ElementAt(position));
 }
Ejemplo n.º 3
0
 public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
 {
     tableView.DeselectRow(indexPath, false);
     BookmarkSelected?.Invoke(this, _bookmarks.ElementAt(indexPath.Row));
 }