Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ZeroitBalloonSmartTagActionList"/> class.
        /// </summary>
        /// <param name="component">A component related to the <see cref="T:System.ComponentModel.Design.DesignerActionList" />.</param>
        public ZeroitBalloonSmartTagActionList(IComponent component) : base(component)
        {
            this.colUserControl = component as ZeroitBalloon;

            // Cache a reference to DesignerActionUIService, so the
            // DesigneractionList can be refreshed.
            this.designerActionUISvc = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService;
        }
Пример #2
0
 /// <summary>
 /// Shows the balloon.
 /// </summary>
 /// <param name="sText">The s text.</param>
 /// <param name="cHost">The c host.</param>
 public void ShowBalloon(string sText, Control cHost)
 {
     this.BalloonText      = sText;
     this._IsBoundToCursor = true;
     this.Visible          = false;
     if (cHost != null)
     {
         this._HostControl = cHost;
         ZeroitBalloon metroBalloon = this;
         cHost.MouseMove += new MouseEventHandler(metroBalloon.OnHostMouseMove);
         ZeroitBalloon metroBalloon1 = this;
         cHost.MouseEnter += new EventHandler(metroBalloon1.OnHostMouseEnter);
         ZeroitBalloon metroBalloon2 = this;
         cHost.MouseLeave += new EventHandler(metroBalloon2.OnHostMouseLeave);
     }
 }