/// <summary> /// The initial tips check. /// </summary> public void CheckTips(int p_X, int p_Y, bool p_booCheckForTipsOnStartup, string p_strVersion) { SetTipList(p_strVersion); if ((m_lstCurrentTips != null) && (m_lstCurrentTips.Count > 0)) { try { RecreateBalloon(this, EventArgs.Empty); m_bmBalloonHelp.Caption = ""; m_bmBalloonHelp.Content = "There are new Tips"; m_bmBalloonHelp.previousButton.Visible = false; m_bmBalloonHelp.Icon = SystemIcons.Exclamation; m_intCurrentTip = 1; if (p_booCheckForTipsOnStartup) { m_bmBalloonHelp.ShowBalloon(p_X, p_Y); } } catch { } } }
/// <summary> /// 显示气泡 /// </summary> /// <param name="title">标题</param> /// <param name="text">正文</param> /// <param name="ctr">控件</param> public static void ShowBalloon(string title, string text, Control ctr) { Balloon = new BalloonHelp(); Balloon.Caption = title; Balloon.Content = text; Balloon.Icon = SystemIcons.Information; Balloon.ShowBalloon(ctr); }