protected virtual bool HandleRightClickOnObject(int hvo) { #if TESTMS Debug.WriteLine("Starting: ReferenceViewBase.HandleRightClickOnObject"); #endif if (hvo == 0) { #if TESTMS Debug.WriteLine("ReferenceViewBase.HandleRightClickOnObject: hvo is 0, so returning."); #endif return(false); } using (ReferenceBaseUi ui = GetCmObjectUiForRightClickMenu(hvo)) { #if TESTMS Debug.WriteLine("Created ReferenceBaseUi"); Debug.WriteLine("hvo=" + hvo.ToString() + " " + ui.Object.ShortName + " " + ui.Object.ToString()); #endif if (ui != null) { #if TESTMS Debug.WriteLine("ui.HandleRightClick: and returning true."); #endif return(ui.HandleRightClick(Mediator, this, true, CmObjectUi.MarkCtrlClickItem)); } #if TESTMS Debug.WriteLine("No ui: returning false"); #endif return(false); } }
protected virtual bool HandleRightClickOnObject(int hvo) { #if TESTMS Debug.WriteLine("Starting: ReferenceViewBase.HandleRightClickOnObject"); #endif if (hvo == 0) { #if TESTMS Debug.WriteLine("ReferenceViewBase.HandleRightClickOnObject: hvo is 0, so returning."); #endif return(false); } ReferenceBaseUi ui = ReferenceBaseUi.MakeUi(Cache, m_rootObj, m_rootFlid, hvo); #if TESTMS Debug.WriteLine("Created ReferenceBaseUi"); Debug.WriteLine("hvo=" + hvo.ToString() + " " + ui.Object.ShortName + " " + ui.Object.ToString()); #endif if (ui != null) { #if TESTMS Debug.WriteLine("ui.HandleRightClick: and returning true."); #endif return(ui.HandleRightClick(Mediator, this, true)); } #if TESTMS Debug.WriteLine("No ui: returning false"); #endif return(false); }