SmartQuant.FinChart.Chart.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
        public void Reset()
        {
            lock (this.lockObject)
            {
                foreach (Pad pad in this.pads)
                {
                    pad.Reset();
                    foreach (object primitive in pad.Primitives)
                        if (primitive is IUpdatable)
                            (primitive as IUpdatable).Updated -= OnPrimitiveUpdated;
                }
                this.pads.Clear();
                this.padsHeightArray.Clear();
                this.volumePadShown = false;
                AddPad();
                this.firstIndex = -1;
                this.lastIndex = -1;
                this.mainSeries = null;
                this.polosaDate = DateTime.MinValue;
                this.contentUpdated = true;
                if (this.updateStyle == ChartUpdateStyle.Fixed)
                    this.UpdateStyle = ChartUpdateStyle.Trailing;
                BarSeriesStyle = BSStyle.Candle;
            }
        }