public override bool onSubMenuSelected([email protected]
                                        subMenu)
 {
     if (!subMenu.hasVisibleItems())
     {
         return(false);
     }
     // The window manager will give us a token.
     [email protected] helper = new [email protected]
                                                               (subMenu);
     helper.setPresenterCallback(mSubMenuPresenterCallback);
     helper.show(null);
     mOpenSubMenu   = helper;
     mOpenSubMenuId = subMenu.getItem().getItemId();
     base.onSubMenuSelected(subMenu);
     return(true);
 }
 /// <summary>
 /// Shows this context menu, allowing the optional original view (and its
 /// ancestors) to add items.
 /// </summary>
 /// <remarks>
 /// Shows this context menu, allowing the optional original view (and its
 /// ancestors) to add items.
 /// </remarks>
 /// <param name="originalView">
 /// Optional, the original view that triggered the
 /// context menu.
 /// </param>
 /// <param name="token">
 /// Optional, the window token that should be set on the context
 /// menu's window.
 /// </param>
 /// <returns>
 /// If the context menu was shown, the
 /// <see cref="MenuDialogHelper">MenuDialogHelper</see>
 /// for
 /// dismissing it. Otherwise, null.
 /// </returns>
 public virtual [email protected] show(android.view.View
                                                                  originalView, android.os.IBinder token)
 {
     if (originalView != null)
     {
         // Let relevant views and their populate context listeners populate
         // the context menu
         originalView.createContextMenu(this);
     }
     if (getVisibleItems().size() > 0)
     {
         android.util.EventLog.writeEvent(50001, 1);
         [email protected] helper = new [email protected]
                                                                   (this);
         helper.show(token);
         return(helper);
     }
     return(null);
 }
		public override bool onSubMenuSelected([email protected]
			 subMenu)
		{
			if (!subMenu.hasVisibleItems())
			{
				return false;
			}
			// The window manager will give us a token.
			[email protected] helper = new [email protected]
				(subMenu);
			helper.setPresenterCallback(mSubMenuPresenterCallback);
			helper.show(null);
			mOpenSubMenu = helper;
			mOpenSubMenuId = subMenu.getItem().getItemId();
			base.onSubMenuSelected(subMenu);
			return true;
		}
		/// <summary>
		/// Shows this context menu, allowing the optional original view (and its
		/// ancestors) to add items.
		/// </summary>
		/// <remarks>
		/// Shows this context menu, allowing the optional original view (and its
		/// ancestors) to add items.
		/// </remarks>
		/// <param name="originalView">
		/// Optional, the original view that triggered the
		/// context menu.
		/// </param>
		/// <param name="token">
		/// Optional, the window token that should be set on the context
		/// menu's window.
		/// </param>
		/// <returns>
		/// If the context menu was shown, the
		/// <see cref="MenuDialogHelper">MenuDialogHelper</see>
		/// for
		/// dismissing it. Otherwise, null.
		/// </returns>
		public virtual [email protected] show(android.view.View
			 originalView, android.os.IBinder token)
		{
			if (originalView != null)
			{
				// Let relevant views and their populate context listeners populate
				// the context menu
				originalView.createContextMenu(this);
			}
			if (getVisibleItems().size() > 0)
			{
				android.util.EventLog.writeEvent(50001, 1);
				[email protected] helper = new [email protected]
					(this);
				helper.show(token);
				return helper;
			}
			return null;
		}