public static void CreateToolTip(string text, int tooltipID, int data, Form parentWindow)
 {
     bool force = false;
     CustomTooltip tooltip = InterfaceMgr.Instance.getCustomTooltip();
     if (parentWindow == null)
     {
         parentWindow = InterfaceMgr.Instance.ParentForm;
     }
     if (tooltip == null)
     {
         tooltip = new CustomTooltip();
         force = true;
         tooltip.customPanel.MouseEnter += new EventHandler(CustomTooltip.customPanel_MouseEnter);
         tooltip.customPanel.MouseLeave += new EventHandler(CustomTooltip.customPanel_MouseLeave);
     }
     else
     {
         if (parentWindow != lastParent)
         {
             tooltip.Close();
             tooltip = new CustomTooltip();
             force = true;
             tooltip.customPanel.MouseEnter += new EventHandler(CustomTooltip.customPanel_MouseEnter);
             tooltip.customPanel.MouseLeave += new EventHandler(CustomTooltip.customPanel_MouseLeave);
         }
         if (!tooltip.Created || !tooltip.Visible)
         {
             force = true;
         }
     }
     lastParent = parentWindow;
     tooltip.updateLocation();
     tooltip.setText(text, tooltipID, data, force);
     tooltip.showTooltip(force, parentWindow);
 }
        public static void CreateToolTip(string text, int tooltipID, int data, Form parentWindow)
        {
            bool          force   = false;
            CustomTooltip tooltip = InterfaceMgr.Instance.getCustomTooltip();

            if (parentWindow == null)
            {
                parentWindow = InterfaceMgr.Instance.ParentForm;
            }
            if (tooltip == null)
            {
                tooltip = new CustomTooltip();
                force   = true;
                tooltip.customPanel.MouseEnter += new EventHandler(CustomTooltip.customPanel_MouseEnter);
                tooltip.customPanel.MouseLeave += new EventHandler(CustomTooltip.customPanel_MouseLeave);
            }
            else
            {
                if (parentWindow != lastParent)
                {
                    tooltip.Close();
                    tooltip = new CustomTooltip();
                    force   = true;
                    tooltip.customPanel.MouseEnter += new EventHandler(CustomTooltip.customPanel_MouseEnter);
                    tooltip.customPanel.MouseLeave += new EventHandler(CustomTooltip.customPanel_MouseLeave);
                }
                if (!tooltip.Created || !tooltip.Visible)
                {
                    force = true;
                }
            }
            lastParent = parentWindow;
            tooltip.updateLocation();
            tooltip.setText(text, tooltipID, data, force);
            tooltip.showTooltip(force, parentWindow);
        }
 public void setCurrentCustomTooltip(CustomTooltip customTooltip)
 {
     this.m_currentCustomTooltip = customTooltip;
 }