Exemplo n.º 1
0
        // *** Cleanup ***

        protected override void CleanupManagedResources()
        {
            if (Messages != null)
            {
                Messages.Dispose();
            }

            //Overlays.DisposeListObjects ();	// istn't it already disposed by owner ??
            ClearOverlays();

            TooltipDelayAction.Dispose();

            HeartbeatTimer.Dispose();
            HeartbeatSubscriptions.Clear();

            if (m_Tooltip != null)
            {
                m_Tooltip.Dispose();
            }
            if (ContextMenuOverlay != null)
            {
                ContextMenuOverlay.Dispose();
            }

            base.CleanupManagedResources();
        }
Exemplo n.º 2
0
        // *** Context Menu Service ***

        public void CloseContextMenu()
        {
            if (ContextMenuOverlay != null)
            {
                RemoveChild(ContextMenuOverlay);
                ContextMenuOverlay.Dispose();
                ContextMenuOverlay = null;
            }
            //this.Focus ();
        }