SIL.FieldWorks.FdoUi.CmObjectUi.IsAcceptableContextToJump C# (CSharp) Method

IsAcceptableContextToJump() protected method

protected IsAcceptableContextToJump ( string toolCurrent, string toolTarget ) : bool
toolCurrent string
toolTarget string
return bool
		protected virtual bool IsAcceptableContextToJump(string toolCurrent, string toolTarget)
		{
			if (toolCurrent == toolTarget)
			{
				ICmObject obj = GetCurrentCmObject();
				// Disable if target is the current object, or target is owned directly by the target object.
				if (obj != null && (obj.Hvo == m_hvo || m_cache.ServiceLocator.GetObject(m_hvo).Owner == obj))
				{
					return false; // we're already there!
				}
			}
			return true;
		}