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

SetIndexInterval() private method

private SetIndexInterval ( int firstIndex, int lastIndex ) : void
firstIndex int
lastIndex int
return void
        private void SetIndexInterval(int firstIndex, int lastIndex)
        {
            if (MainSeries == null || firstIndex < 0 || lastIndex > MainSeries.Count - 1)
                return;
            this.firstIndex = firstIndex;
            this.lastIndex = lastIndex;
            this.leftDateTime = firstIndex >= 0 ? MainSeries.GetDateTime(this.firstIndex) : DateTime.MaxValue;
            this.rightDateTime = lastIndex < 0 || lastIndex > MainSeries.Count - 1 ? DateTime.MinValue : MainSeries.GetDateTime(this.lastIndex);
            foreach (Pad pad in this.pads)
                pad.SetInterval(this.leftDateTime, this.rightDateTime);
            this.contentUpdated = true;
        }