SIL.FieldWorks.FdoUi.CmObjectUi.HandleRightClick C# (CSharp) Метод

HandleRightClick() публичный Метод

Handle a right click by popping up the implied context menu.
public HandleRightClick ( XCore.Mediator mediator, Control hostControl, bool shouldDisposeThisWhenClosed ) : bool
mediator XCore.Mediator
hostControl System.Windows.Forms.Control
shouldDisposeThisWhenClosed bool True, if the menu handler is to dispose of the CmObjectUi after menu closing
Результат bool
		public bool HandleRightClick(Mediator mediator, Control hostControl, bool shouldDisposeThisWhenClosed)
		{
			CheckDisposed();

			return HandleRightClick(mediator, hostControl, shouldDisposeThisWhenClosed, ContextMenuId);
		}

Same methods

CmObjectUi::HandleRightClick ( XCore.Mediator mediator, Control hostControl, bool shouldDisposeThisWhenClosed, Action adjustMenu ) : bool
CmObjectUi::HandleRightClick ( XCore.Mediator mediator, Control hostControl, bool shouldDisposeThisWhenClosed, string sMenuId ) : bool
CmObjectUi::HandleRightClick ( XCore.Mediator mediator, Control hostControl, bool shouldDisposeThisWhenClosed, string sMenuId, Action adjustMenu ) : bool

Usage Example

Пример #1
0
		private bool HandleRightClickOnObject(int hvoDummy)
		{
			if (hvoDummy == 0)
				return false;

			if (m_realEnvs.ContainsKey(hvoDummy))
			{
				// This displays the "Show in Environments list" item in the popup menu, in
				// addition to all the Insert X" items.
				int hvo = m_realEnvs[hvoDummy].Hvo;
				ReferenceCollectionUi ui = new ReferenceCollectionUi(Cache, m_rootObj, m_rootFlid, hvo);
				return ui.HandleRightClick(Mediator, this, true);
			}
			else
			{
				// We need a CmObjectUi in order to call HandleRightClick().  This won't
				// display the "Show in Environments list" item in the popup menu.
				CmObjectUi ui = new CmObjectUi(m_rootObj);
				return ui.HandleRightClick(Mediator, this, true, "mnuEnvReferenceChoices");
			}
		}
All Usage Examples Of SIL.FieldWorks.FdoUi.CmObjectUi::HandleRightClick