Beispiel #1
0
        protected override bool LoadAxisItems()
        {
            IList <object> values;

            if (this.ExplicitTicks != null)
            {
                values = this.ExplicitTicks.Select(x => (object)x).ToArray();
                this._currentDrawingSettings = null;
            }
            else
            {
                IAxisDrawingSettingsBase drawingSettings = this.DrawingSettings;
                if (drawingSettings == null || !drawingSettings.CanUpdateAxisItems())
                {
                    return(false);
                }

                if (drawingSettings.Equals(this._currentDrawingSettings))
                {
                    return(false);
                }

                this._currentDrawingSettings = drawingSettings;

                values = drawingSettings.GetPlottingValues().ToArray();
            }

            DoUpdateAxisItems(values);

            return(true);
        }
Beispiel #2
0
        protected override bool LoadAxisItems()
        {
            IAxisDrawingSettingsBase drawingSettings = this.DrawingSettings;

            if (drawingSettings == null || !drawingSettings.CanUpdateAxisItems())
            {
                return(false);
            }

            if (drawingSettings.Equals(this._currentDrawingSettings))
            {
                return(false);
            }

            this._currentDrawingSettings = drawingSettings;

            var dataValues = drawingSettings.GetPlottingValues().ToArray();

            DoUpdateAxisItems(dataValues);

            return(true);
        }