Exemplo n.º 1
0
        /// <summary>
        /// Подготовить компонент для работы в режиме прокрутки графиков.
        /// Очищаем все данные в буферах графика.
        /// Запрашиваем по новой все данные для отображения.
        /// Настраиваем стартовое время отображения графиков.
        /// </summary>
        protected void InitializeForDoScrolling()
        {
            try
            {
                Graphic[] graphics = panel.Graphics;
                if (graphics != null)
                {
                    for (int index = 0; index < graphics.Length; index++)
                    {
                        Graphic graphic = graphics[index];
                        if (graphic != null)
                        {
                            graphic.Clear();
                        }
                    }
                }

                if (OnData != null)
                {
                    OnData(this, new GraphicEventArgs());
                }

                InitializeScrollBar();
            }
            catch { }
        }