Example #1
0
        private void MainForm_Resize(object sender, EventArgs e)
        {
            if (WindowState == FormWindowState.Minimized)
            {
                Hide();

                MatchItem matchNext = matchProvider.GetNextMatch();

                string tipText = Strings.NoMatches;
                if (matchNext != null)
                {
                    tipText = matchNext.getDescription();
                }

                niTray.ShowBalloonTip(500, Application.ProductName, tipText, ToolTipIcon.Info);
            }
        }