void ShowDesktopNotification(TickerCollection collection, double prev)
        {
            ArbitrageInfo info = collection.Arbitrage;

            if (MdiParent.WindowState != FormWindowState.Minimized)
            {
                return;
            }
            double delta   = info.MaxProfitUSD - prev;
            double percent = delta / prev * 100;

            string            changed = string.Empty;
            TrendNotification trend   = TrendNotification.New;

            if (prev > 0)
            {
                changed = "Arbitrage changed: <b>" + percent.ToString("+0.###;-0.###;0.###%%") + "</b>";
                trend   = delta > 0 ? TrendNotification.TrendUp : TrendNotification.TrendDown;
            }
            else
            {
                changed = "New Arbitrage possibilities. Up to <b>" + info.MaxProfitUSD.ToString("USD 0.###") + "</b>";
            }
            GetReadyNotificationForm().ShowInfo(this, trend, collection.ShortName, changed, 10000);
        }
        public void ShowInfo(Form owner, Control ownerControl, TrendNotification notification, string caption, string text, int autoHideMiliseconds)
        {
            Image img = null;

            if (notification == TrendNotification.TrendUp)
            {
                img = TrendUpImage;
            }
            else if (notification == TrendNotification.TrendDown)
            {
                img = TrendDownImage;
            }
            else
            {
                img = TrendNewImage;
            }
            ShowInfo(owner, ownerControl, img, caption, text, autoHideMiliseconds);
        }
 public void ShowInfo(Form owner, TrendNotification trend, string caption, string text, int autoHideMiliseconds)
 {
     ShowInfo(owner, null, trend, caption, text, autoHideMiliseconds);
 }
 public void ShowInfo(Form owner, TrendNotification trend, string caption, string text)
 {
     ShowInfo(owner, null, trend, caption, text, 0);
 }