Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private ReferenceBaseUi GetCmObjectUiForRightClickMenu(int hvoTarget)
 {
     return(ReferenceBaseUi.MakeUi(Cache, m_rootObj, m_rootFlid, hvoTarget));
 }