Esempio n. 1
0
        /// <summary>
        /// очистить журнал и графики
        /// </summary>
        public void Clear()
        {
            try
            {
                if (_botTabs == null ||
                    _botTabs.Count == 0)
                {
                    return;
                }

                for (int i = 0; i < _botTabs.Count; i++)
                {
                    if (_botTabs[i].GetType().Name == "BotTabSimple")
                    {
                        BotTabSimple bot = (BotTabSimple)_botTabs[i];
                        bot.ClearAceberg();
                        bot.BuyAtStopCanсel();
                        bot.SellAtStopCanсel();
                        bot.Clear();
                    }
                    if (_botTabs[i].GetType().Name == "BotTabIndex")
                    {
                        BotTabIndex bot = (BotTabIndex)_botTabs[i];
                        bot.Clear();
                    }
                }
            }
            catch (Exception error)
            {
                SendNewLogMessage(error.ToString(), LogMessageType.Error);
            }
        }