Ejemplo n.º 1
0
        /// <summary>
        /// Overload this method to handle the termination of an indicator. Use this method to dispose of any resources vs overloading the Dispose() method.
        /// </summary>
        protected override void OnTermination()
        {
            if (dailyBars != null)
            {
                dailyBars.Dispose();
            }

            textBrush.Dispose();
            foreach (SolidBrush solidBrush in brushes)
            {
                solidBrush.Dispose();
            }
            stringFormatFar.Dispose();
            stringFormatNear.Dispose();
        }